1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

229 Commits

Author SHA1 Message Date
Michael Adam
8880111466 registry: add a transaction wrapper to init_registry_key_internal().
Michael
(This used to be commit 8b9cff84d5c39e6d7c315d87ac2fdf7fc0d4e4c4)
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 55233f875ebe1d515c65d9322cda69eb52d4c7d5)
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 e9c56250eb7a2dc4e69962c5b48875834941ccfc)
2008-03-18 21:31:24 +01:00
Michael Adam
6a2a76bc92 registry: untangle assignment and if-clause in init_registry_data().
Michael
(This used to be commit 64664d25cf84e5e0f4a4876b2c38c127b310dbc5)
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 3ea0a0beb47bf91b71d949de5abb797177721dcc)
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 df848d8eeeb102288a3acb9a0f8a7015e0c6ca6b)
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 76dad05e4ce4b4cb26557bc151359ed9d58d6317)
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 d553b5d72569c1496bfa3de703c9bf15a9a6cb60)
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 e4f2c856ec716697af4815491b5ae8ddb263cd51)
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 860316cbe70836882bff16b39f0deb5c12cbd1f3)
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 7454e426f2ea9aa42620ed5bcb34c85797b9e21b)
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 3a1d79116b693bc25af1106c9a43ffd275ac3d1e)
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 93ea27a3e23e489a2af3c778684f8a8a4594b567)
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 331d7fd2ea6d8aeb029478a6ab8d4051fa2c03fd)
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 a99b51159a7db5f249ff136cf9ba758d14380a35)
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 e1d4a2fa5b5b0f21d1ea4a9dffc326878c9f54b7)
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 9315de404812d89dddcec6ac4ae17c34f5012746)
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 95525772f2791f0fb999fe9f271da5b0fbdc62d8)
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 966b2414cb6efdfe5acb412ed9bdfd7589ee694c)
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 76e4cdc25fc9a7e47fd9a356dc54533b62c5db08)
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 f357b1ddd3ea552163151f27b4ec70fe0488a0ba)
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 8b0dd1e7582eef71275eea2da2b444588412c517)
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 7fd0ae3edce8a6ae913344cc0974181c19179b23)
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 d39957e2c9216ef01b2ef53863c0ef5d3a9b5fee)
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 79f37d47655ec26176a8da5f47e1c7400888a2ef)
2008-03-17 08:22:32 +01:00
Michael Adam
178f3afe41 registry: migrate tdb registry backend to dbwrap.
Michael
(This used to be commit 3c42d8ee16a4b143c6658fe26030569658eaef66)
2008-03-17 08:22: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 956bc602062825493e1c357e2388fee1e5514b50)
2008-03-01 01:02:15 +01: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 951d3fae2cbea09cc4e1806cbf0a94ecdfcee8d5)
2008-02-19 09:09:04 +01:00
Michael Adam
b5666ceefb Rename reg_db.c to reg_backend_db.c
Michael
(This used to be commit c3f695d3b14ee06fc5d517ca094236e885f9e707)
2008-01-21 08:49:12 +01:00