1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

331 Commits

Author SHA1 Message Date
Volker Lendecke
988cffe9ca Fix Coverity ID 478
(This used to be commit 5f77938dc4)
2008-03-23 18:28:23 +01:00
Michael Adam
178c430821 registry: add reg_init_basic() - init registry with only the db backend.
Michael
(This used to be commit 1831042bdc)
2008-03-22 02:05:53 +01:00
Michael Adam
4825cef8bc registry: close registry in exit path in registry_init_smbconf().
Michael
(This used to be commit 5aa3141bff)
2008-03-22 01:54:18 +01:00
Michael Adam
b8a949b566 registry: some whitespace cleanup in init_registry().
Michael
(This used to be commit f33095e44b)
2008-03-22 01:53:44 +01:00
Michael Adam
88d46f4ea4 registry: remove unneeded talloc stackframe variable.
Michael
(This used to be commit 81993db828)
2008-03-22 01:52:03 +01:00
Michael Adam
e12ed5279a registry: close regdb in error path (and use it) in init_registry().
Michael
(This used to be commit 73b325fe7a)
2008-03-22 01:49:21 +01:00
Michael Adam
9ec7af58c6 registry: fix registry_init_smbconf() to close the registry at the end.
Michael
(This used to be commit f4d87fdbf2)
2008-03-21 23:50:49 +01:00
Volker Lendecke
1e696c2845 Fix Coverity ID 506
(This used to be commit c9add4d59a)
2008-03-21 11:48:09 +01:00
Michael Adam
060f554adc registry: use available string constant in debug statement.
Michael
(This used to be commit 6bac03a2ec)
2008-03-20 15:01:52 +01:00
Michael Adam
cef4e1bd9e registry: in regdb_init, not only complain about INFO/version, store it...
Michael
(This used to be commit 27d67365ad)
2008-03-20 15:01:52 +01:00
Michael Adam
4bac0e505f registry: reformat regdb_init() slightly, breaking long lines.
Michael
(This used to be commit 11da885f1e)
2008-03-20 15:01:52 +01:00
Michael Adam
13b894b01e registry: untangle assignment and if-statement in regdb_init().
Michael
(This used to be commit 504058df97)
2008-03-20 15:01:52 +01:00
Michael Adam
2f01e055cf 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
(This used to be commit 59fdd30c78)
2008-03-20 15:01:52 +01:00
Michael Adam
8880111466 registry: add a transaction wrapper to init_registry_key_internal().
Michael
(This used to be commit 8b9cff84d5)
2008-03-20 15:01:52 +01:00
Michael Adam
1f3139df25 registry: refactor creation of subkeys out of init_registry_data().
Michael
(This used to be commit 55233f875e)
2008-03-20 15:01:51 +01:00
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