diff options
author | Günther Deschner <gd@samba.org> | 2007-11-06 00:50:47 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2007-11-06 00:50:47 +0100 |
commit | 99d9993fdb9cdf5ac054329ddf5e9c4f258f9049 (patch) | |
tree | ae7ed28f3fc736fc72919a47d2479ee7b015c58e /source3/registry/reg_frontend_hilvl.c | |
parent | 3fd2d4ed856bc4fa053e1c03926ca71bb4ab1a9f (diff) | |
download | samba-99d9993fdb9cdf5ac054329ddf5e9c4f258f9049.tar.gz samba-99d9993fdb9cdf5ac054329ddf5e9c4f258f9049.tar.bz2 samba-99d9993fdb9cdf5ac054329ddf5e9c4f258f9049.zip |
When deleting a key from the registry make sure the non-default
security descriptor gets deleted as well.
Guenther
(This used to be commit d140d68537225b6a6a99be3d9b09354e3f6ad8c9)
Diffstat (limited to 'source3/registry/reg_frontend_hilvl.c')
-rw-r--r-- | source3/registry/reg_frontend_hilvl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/registry/reg_frontend_hilvl.c b/source3/registry/reg_frontend_hilvl.c index 08429c6dfe..a4b78b24c0 100644 --- a/source3/registry/reg_frontend_hilvl.c +++ b/source3/registry/reg_frontend_hilvl.c @@ -204,3 +204,13 @@ WERROR regkey_get_secdesc(TALLOC_CTX *mem_ctx, REGISTRY_KEY *key, *psecdesc = secdesc; return WERR_OK; } + +WERROR regkey_set_secdesc(REGISTRY_KEY *key, + struct security_descriptor *psecdesc) +{ + if (key->hook && key->hook->ops && key->hook->ops->set_secdesc) { + return key->hook->ops->set_secdesc(key->name, psecdesc); + } + + return WERR_ACCESS_DENIED; +} |