1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

306 Commits

Author SHA1 Message Date
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
Michael Adam
6c5a831e96 Add a debug message to fetch_reg_values().
Michael
(This used to be commit 239aa59cc1)
2008-01-20 03:54:56 +01:00
Michael Adam
7745674f0c Add some debugging output to reg_cachehook.c
Michael
(This used to be commit 2a27892880)
2008-01-20 03:54:56 +01:00
Michael Adam
e45dacce89 Remove the dynamic registry overlay.
It is unnecessary now the dynamic functions have been made
registry backends of their own.

Michael
(This used to be commit e327953bd6)
2008-01-20 03:47:37 +01:00
Michael Adam
c16b74cc86 Add a registry backend perflib that replaces the former dynamic overlay.
Michael
(This used to be commit c3fba41595)
2008-01-20 03:47:37 +01:00
Michael Adam
c4b65647ca Some reformatting of current_version_fetch_values().
Michael
(This used to be commit d2e3814db8)
2008-01-20 03:47:37 +01:00
Michael Adam
2925d83573 Add a registry backend current_version that replaces the former dynamic overlay.
Make sure to only respond to the exact current version key since subkeys
are registered by other backends (printing and - soon - perflib).

Michael
(This used to be commit 2c650bf63c)
2008-01-20 03:47:36 +01:00
Michael Adam
25c21fb562 Use some consts instead of literal strings for registry keys.
Michael
(This used to be commit 80024f4e1c)
2008-01-20 02:03:41 +01:00
Michael Adam
8eed06fb8c Some reformatting in hkpt_params_fetch_values().
Michael
(This used to be commit f245c4e094)
2008-01-20 02:03:40 +01:00
Michael Adam
949a88ee2f Add a registry backend hkpt_params that replaces the former dynamic overlay.
Michael
(This used to be commit 8e8bb6ba12)
2008-01-20 02:03:40 +01:00
Michael Adam
b4e3c75272 Some reformatting in tcpip_params_fetch_values().
Michael
(This used to be commit 5b3813b233)
2008-01-20 02:03:40 +01:00