summaryrefslogtreecommitdiff
path: root/source4/lib/registry/common
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-03 23:23:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:29 -0500
commiteac7fe4ebc6eb819fe3721051751e60b12e95684 (patch)
tree5dc13c770cd917d43ff66eb3d19b485d13ee23a8 /source4/lib/registry/common
parent40cbd4625ae7f9799238594faa4f8cc54ead72e4 (diff)
downloadsamba-eac7fe4ebc6eb819fe3721051751e60b12e95684.tar.gz
samba-eac7fe4ebc6eb819fe3721051751e60b12e95684.tar.bz2
samba-eac7fe4ebc6eb819fe3721051751e60b12e95684.zip
r10016: Support reading security descriptors on keys.
(This used to be commit b349e902c7b0140cd94e241ba9f81c83fa54f603)
Diffstat (limited to 'source4/lib/registry/common')
-rw-r--r--source4/lib/registry/common/reg_interface.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/registry/common/reg_interface.c b/source4/lib/registry/common/reg_interface.c
index 7f745143e6..5297b1b3cf 100644
--- a/source4/lib/registry/common/reg_interface.c
+++ b/source4/lib/registry/common/reg_interface.c
@@ -427,6 +427,15 @@ WERROR reg_val_set(struct registry_key *key, const char *value, uint32_t type, D
}
+WERROR reg_get_sec_desc(TALLOC_CTX *ctx, struct registry_key *key, struct security_descriptor **secdesc)
+{
+ /* A 'real' set function has preference */
+ if (key->hive->functions->key_get_sec_desc)
+ return key->hive->functions->key_get_sec_desc(ctx, key, secdesc);
+
+ DEBUG(1, ("Backend '%s' doesn't support method get_sec_desc\n", key->hive->functions->name));
+ return WERR_NOT_SUPPORTED;
+}
WERROR reg_del_value(struct registry_key *key, const char *valname)
{