Michael Adam
11da885f1e
registry: reformat regdb_init() slightly, breaking long lines.
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
504058df97
registry: untangle assignment and if-statement in regdb_init().
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
59fdd30c78
registry: separate initialization of registry data from regdb_init().
...
Leave this to the users (currently registry_init_smbconf() and
init_registry()) to initialize as much of preliminary registry data
as needed.
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
8b9cff84d5
registry: add a transaction wrapper to init_registry_key_internal().
...
Michael
2008-03-20 15:01:52 +01:00
Michael Adam
55233f875e
registry: refactor creation of subkeys out of init_registry_data().
...
Michael
2008-03-20 15:01:51 +01:00
Günther Deschner
e9c56250eb
Bind Group Policy processing closer to the samba registry.
...
Guenther
2008-03-18 21:31:24 +01:00
Marc VanHeyningen
3fc85d2259
Coverity fixes
2008-03-17 20:52:25 +01:00
Michael Adam
64664d25cf
registry: untangle assignment and if-clause in init_registry_data().
...
Michael
2008-03-17 13:12:47 +01:00
Michael Adam
3ea0a0beb4
registry: convert regdb REGISTRY_OPS to named struct initializers.
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
df848d8eee
registry: use talloc instead of malloc and provide common exit point
...
in regdb_get_secdesc().
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
76dad05e4c
registry: remove an unused variable from regdb_set_secdesc().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
d553b5d725
registry: untangle assignments and if statements in regdb_set_secdesc().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
e4f2c856ec
registry: use talloc_stackframe instead of hand crafted temporary context.
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
860316cbe7
registry: use talloc instead of malloc for tdb data in regdb_store_values().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
7454e426f2
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
2008-03-17 08:22:33 +01:00
Michael Adam
3a1d79116b
registry: don't leak to talloc stack in regdb_fetch_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
93ea27a3e2
registry: explicitly use talloc context instead of talloc_tos()
...
in regdb_fetch_keys().
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
331d7fd2ea
registry: don't leak on success path in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
a99b51159a
registry: allocate tempory data in talloc stack in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
e1d4a2fa5b
registry: separate cancel and failur exit paths in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
9315de4048
registry: don't leak memory on transaction fail in regdb_store_keys().
...
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
95525772f2
registry: don't leak (to talloc_tos()) in regdb_store_keys().
...
use talloc_stackframe() and free on error path.
Michael
2008-03-17 08:22:33 +01:00
Michael Adam
966b2414cb
registry: reformat regdb_store_keys_internal(), killing long lines.
...
Michael
2008-03-17 08:22:32 +01:00
Michael Adam
76e4cdc25f
registry: don't leak (to talloc_tos()) in regdb_store_keys_internal().
...
Michael
2008-03-17 08:22:32 +01:00
Michael Adam
f357b1ddd3
registry: reformat init_registry_data() some, killing long lines.
...
Michael
2008-03-17 08:22:32 +01:00
Michael Adam
8b0dd1e758
registry: explicitly use talloc context instead of talloc_tos()
...
in init_registry_data().
Michael
2008-03-17 08:22:32 +01:00
Michael Adam
7fd0ae3edc
registry: don't leak (to talloc_tos()) in init_registry_data().
...
Michael
2008-03-17 08:22:32 +01:00
Michael Adam
d39957e2c9
registry: rename tdb_refcount to regdb_refcount after change to dbwrap.
...
Michael
2008-03-17 08:22:32 +01:00
Michael Adam
79f37d4765
registry: rename tdb_reg to regdb after change to dbwrap.
...
Michael
2008-03-17 08:22:32 +01:00
Michael Adam
3c42d8ee16
registry: migrate tdb registry backend to dbwrap.
...
Michael
2008-03-17 08:22:32 +01:00
Günther Deschner
29ccc0e233
Fix return of reg values below HKLM/SOFTWARE/MICROSOFT/WINDOWSNT/CURRENTVERSION.
...
Michael, please check.
Guenther
2008-03-11 10:52:32 +01:00
Günther Deschner
956bc60206
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
2008-03-01 01:02:15 +01:00
Tim Potter
737bb950d5
Fix double free bugs after calling regfio_close()
2008-02-20 18:28:41 -08:00
Michael Adam
951d3fae2c
Make regdb_init() behave like regdb_open() when registry is already opened.
...
I.e. increment the refcounter.
Michael
2008-02-19 09:09:04 +01:00
Michael Adam
2c66413de2
Remove (now) unused function make_default_reg_sd().
...
Michael
2008-02-18 17:41:21 +01:00
Michael Adam
194e00822c
Grab secdesc for key from registry for reg_savekey()
...
instead of construction another default secdesc.
Michael
2008-02-18 17:41:21 +01:00
Michael Adam
9f0448ca32
Add NT Authority\System as group sid to default registry key security descriptor.
...
Michael
2008-02-18 17:41:20 +01:00
Michael Adam
91dbe79df2
Change construct_registry_sd() to return WERROR instead of the SEC_DESC *.
...
Michael
2008-02-18 17:41:20 +01:00
Michael Adam
d87fb13959
Reformat construct_registry_sd() slightly (stick to coding rules).
...
Michael
2008-02-18 17:41:20 +01:00
Michael Adam
52e9815765
Use BUILTIN\administrators as owner of the default registry key security descriptor.
...
Michael
2008-02-18 17:41:20 +01:00
Michael Adam
2c54ef2d07
Reformat copied reg_savekey/reg_restorekey code.
...
Sticking to coding rules.
Michael
2008-02-15 17:32:32 +01:00
Michael Adam
2222acbac9
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
2008-02-15 16:23:10 +01:00
Michael Adam
bf6340d00d
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
2008-02-15 16:23:10 +01:00
Michael Adam
84ec89ab9f
Adapt a comment to current circumstances.
...
Michael
2008-02-15 16:23:10 +01:00
Michael Adam
9d3c27f557
Rename registry_init_regdb() to registry_init_smbconf().
...
That's what it actually is.
Michael
2008-02-15 16:23:10 +01:00
Volker Lendecke
d28a537277
Fix Coverity IDs 451, 452
2008-01-25 20:55:51 +01:00
Michael Adam
01bda3ab35
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
2008-01-21 08:49:12 +01:00
Michael Adam
39d65d11f8
Move reg_frontend_hilvl.c to reg_dispatcher.c
...
This is actually the dispatcher to the registered registry backends.
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
4952417fca
Extend/fix comments.
...
Michael
2008-01-21 08:49:12 +01:00
Michael Adam
0005b88d74
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
2008-01-21 08:49:12 +01:00