Günther Deschner
e8bd75ec73
Bind Group Policy processing closer to the samba registry.
...
Guenther
(This used to be commit e9c56250eb
)
2008-03-18 21:31:24 +01:00
Marc VanHeyningen
e06aa46b9f
Coverity fixes
...
(This used to be commit 3fc85d2259
)
2008-03-17 20:52:25 +01:00
Michael Adam
6a2a76bc92
registry: untangle assignment and if-clause in init_registry_data().
...
Michael
(This used to be commit 64664d25cf
)
2008-03-17 13:12:47 +01:00
Michael Adam
cc2e3f180b
registry: convert regdb REGISTRY_OPS to named struct initializers.
...
Michael
(This used to be commit 3ea0a0beb4
)
2008-03-17 08:22:33 +01:00
Michael Adam
9741e07140
registry: use talloc instead of malloc and provide common exit point
...
in regdb_get_secdesc().
Michael
(This used to be commit df848d8eee
)
2008-03-17 08:22:33 +01:00
Michael Adam
647432a40c
registry: remove an unused variable from regdb_set_secdesc().
...
Michael
(This used to be commit 76dad05e4c
)
2008-03-17 08:22:33 +01:00
Michael Adam
18a407de8c
registry: untangle assignments and if statements in regdb_set_secdesc().
...
Michael
(This used to be commit d553b5d725
)
2008-03-17 08:22:33 +01:00
Michael Adam
40e6ec16ee
registry: use talloc_stackframe instead of hand crafted temporary context.
...
Michael
(This used to be commit e4f2c856ec
)
2008-03-17 08:22:33 +01:00
Michael Adam
2ce3d4b918
registry: use talloc instead of malloc for tdb data in regdb_store_values().
...
Michael
(This used to be commit 860316cbe7
)
2008-03-17 08:22:33 +01:00
Michael Adam
ae7f7e44ff
registry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx
...
in regdb_store_values(). Also provide common exit path for
freeing memory.
Michael
(This used to be commit 7454e426f2
)
2008-03-17 08:22:33 +01:00
Michael Adam
ecd7479be2
registry: don't leak to talloc stack in regdb_fetch_keys().
...
Michael
(This used to be commit 3a1d79116b
)
2008-03-17 08:22:33 +01:00
Michael Adam
3b250d17d9
registry: explicitly use talloc context instead of talloc_tos()
...
in regdb_fetch_keys().
Michael
(This used to be commit 93ea27a3e2
)
2008-03-17 08:22:33 +01:00
Michael Adam
46ea0d333e
registry: don't leak on success path in regdb_store_keys().
...
Michael
(This used to be commit 331d7fd2ea
)
2008-03-17 08:22:33 +01:00
Michael Adam
a0d4c1e127
registry: allocate tempory data in talloc stack in regdb_store_keys().
...
Michael
(This used to be commit a99b51159a
)
2008-03-17 08:22:33 +01:00
Michael Adam
78adf71669
registry: separate cancel and failur exit paths in regdb_store_keys().
...
Michael
(This used to be commit e1d4a2fa5b
)
2008-03-17 08:22:33 +01:00
Michael Adam
e64825e620
registry: don't leak memory on transaction fail in regdb_store_keys().
...
Michael
(This used to be commit 9315de4048
)
2008-03-17 08:22:33 +01:00
Michael Adam
ba8607acc1
registry: don't leak (to talloc_tos()) in regdb_store_keys().
...
use talloc_stackframe() and free on error path.
Michael
(This used to be commit 95525772f2
)
2008-03-17 08:22:33 +01:00
Michael Adam
a37811727a
registry: reformat regdb_store_keys_internal(), killing long lines.
...
Michael
(This used to be commit 966b2414cb
)
2008-03-17 08:22:32 +01:00
Michael Adam
a446378e7a
registry: don't leak (to talloc_tos()) in regdb_store_keys_internal().
...
Michael
(This used to be commit 76e4cdc25f
)
2008-03-17 08:22:32 +01:00
Michael Adam
8432f7f8cf
registry: reformat init_registry_data() some, killing long lines.
...
Michael
(This used to be commit f357b1ddd3
)
2008-03-17 08:22:32 +01:00
Michael Adam
0a98b3ce1d
registry: explicitly use talloc context instead of talloc_tos()
...
in init_registry_data().
Michael
(This used to be commit 8b0dd1e758
)
2008-03-17 08:22:32 +01:00
Michael Adam
0ca465f054
registry: don't leak (to talloc_tos()) in init_registry_data().
...
Michael
(This used to be commit 7fd0ae3edc
)
2008-03-17 08:22:32 +01:00
Michael Adam
7c6de9b0bd
registry: rename tdb_refcount to regdb_refcount after change to dbwrap.
...
Michael
(This used to be commit d39957e2c9
)
2008-03-17 08:22:32 +01:00
Michael Adam
62556cd6f0
registry: rename tdb_reg to regdb after change to dbwrap.
...
Michael
(This used to be commit 79f37d4765
)
2008-03-17 08:22:32 +01:00
Michael Adam
178f3afe41
registry: migrate tdb registry backend to dbwrap.
...
Michael
(This used to be commit 3c42d8ee16
)
2008-03-17 08:22:32 +01:00
Günther Deschner
2b4378d0c5
Fix return of reg values below HKLM/SOFTWARE/MICROSOFT/WINDOWSNT/CURRENTVERSION.
...
Michael, please check.
Guenther
(This used to be commit 29ccc0e233
)
2008-03-11 10:52:32 +01:00
Günther Deschner
87222d3f11
Fix init_registry_data for subkeyless top-level keys.
...
On a fresh install with no existing registry.tdb, make sure we are able to
create our initial top-level entries.
Michael, Volker, please check.
Guenther
(This used to be commit 956bc60206
)
2008-03-01 01:02:15 +01:00
Tim Potter
34eef81d2a
Fix double free bugs after calling regfio_close()
...
(This used to be commit 737bb950d5
)
2008-02-20 18:28:41 -08:00
Michael Adam
9e9cd40a7d
Make regdb_init() behave like regdb_open() when registry is already opened.
...
I.e. increment the refcounter.
Michael
(This used to be commit 951d3fae2c
)
2008-02-19 09:09:04 +01:00
Michael Adam
bb0bf5c902
Remove (now) unused function make_default_reg_sd().
...
Michael
(This used to be commit 2c66413de2
)
2008-02-18 17:41:21 +01:00
Michael Adam
7ba906634b
Grab secdesc for key from registry for reg_savekey()
...
instead of construction another default secdesc.
Michael
(This used to be commit 194e00822c
)
2008-02-18 17:41:21 +01:00
Michael Adam
f3694d50a3
Add NT Authority\System as group sid to default registry key security descriptor.
...
Michael
(This used to be commit 9f0448ca32
)
2008-02-18 17:41:20 +01:00
Michael Adam
59e7ee6d7d
Change construct_registry_sd() to return WERROR instead of the SEC_DESC *.
...
Michael
(This used to be commit 91dbe79df2
)
2008-02-18 17:41:20 +01:00
Michael Adam
e16f039f26
Reformat construct_registry_sd() slightly (stick to coding rules).
...
Michael
(This used to be commit d87fb13959
)
2008-02-18 17:41:20 +01:00
Michael Adam
d38e756feb
Use BUILTIN\administrators as owner of the default registry key security descriptor.
...
Michael
(This used to be commit 52e9815765
)
2008-02-18 17:41:20 +01:00
Michael Adam
abdedc7940
Reformat copied reg_savekey/reg_restorekey code.
...
Sticking to coding rules.
Michael
(This used to be commit 2c54ef2d07
)
2008-02-15 17:32:32 +01:00
Michael Adam
355faf2e3d
Move the implementation of _winreg_RestoreKey to reg_api.c
...
This removes the internals of reg_api from srv_winreg_nt.c entirely,
only reg_api is used there, now. This enlarges the dependencies of
reg_api somewhat now since it adds regfio. But this can be separated
out later. The current goal is to achieve a complete use of reg_api.
Michael
(This used to be commit 2222acbac9
)
2008-02-15 16:23:10 +01:00
Michael Adam
c720a0e228
Move implementation of _winreg_SaveKey() from srv_winreg_nt.c to reg_api.c
...
This gives a new function reg_savekey() and hides a piece of
the backend code from srv_winreg_nt.c. One step towards using
reg_api throughout samba code.
Michael
(This used to be commit bf6340d00d
)
2008-02-15 16:23:10 +01:00
Michael Adam
8fffca2e95
Adapt a comment to current circumstances.
...
Michael
(This used to be commit 84ec89ab9f
)
2008-02-15 16:23:10 +01:00
Michael Adam
9af84dd382
Rename registry_init_regdb() to registry_init_smbconf().
...
That's what it actually is.
Michael
(This used to be commit 9d3c27f557
)
2008-02-15 16:23:10 +01:00
Volker Lendecke
6d387037b1
Fix Coverity IDs 451, 452
...
(This used to be commit d28a537277
)
2008-01-25 20:55:51 +01:00
Michael Adam
99dfd66488
Rename lib/util_reg_smbconf.c to registry/reg_init_smbconf.c
...
This actually is a counterpart to reg_init_full, in that is does
open and initialize the registry too, but only registeres the backends
necessary to access the SMBCONF key.
Michael
(This used to be commit 01bda3ab35
)
2008-01-21 08:49:12 +01:00
Michael Adam
1b4dfc2e7d
Move reg_frontend_hilvl.c to reg_dispatcher.c
...
This is actually the dispatcher to the registered registry backends.
Michael
(This used to be commit 39d65d11f8
)
2008-01-21 08:49:12 +01:00
Michael Adam
42641d6321
Extend/fix comments.
...
Michael
(This used to be commit 4952417fca
)
2008-01-21 08:49:12 +01:00
Michael Adam
99186bf726
Extract regkey_open_internal() from reg_frontend.c to new reg_util_legacy.c
...
reg_openpath should be used instead of this function (along with the
reg_api interface). Last callers of this function are in services_db.c
Michael
(This used to be commit 0005b88d74
)
2008-01-21 08:49:12 +01:00
Michael Adam
b5666ceefb
Rename reg_db.c to reg_backend_db.c
...
Michael
(This used to be commit c3f695d3b1
)
2008-01-21 08:49:12 +01:00
Michael Adam
e7520f3ad8
Rename reg_shares.c to reg_backend_shares.c
...
Michael
(This used to be commit aaf33ae5b8
)
2008-01-21 08:49:12 +01:00
Michael Adam
4ccee0dc0c
Rename reg_smbconf.c to reg_backend_smbconf.c
...
Michael
(This used to be commit b85e5ee450
)
2008-01-21 08:49:12 +01:00
Michael Adam
1e68e24c8e
Rename reg_printing.c to reg_backend_printing.c
...
Start making naming of source files more systematic
to facilitate understanding of the structures.
Michael
(This used to be commit b3c2fb17a4
)
2008-01-21 08:49:12 +01:00
Volker Lendecke
33f3eeaa00
Fix some "set but never used" warnings
...
(This used to be commit 4a6dadc517
)
2008-01-20 17:44:40 +01:00