s3:net rpc registry: make getsd succeed when key sd only gives access to SD not key...
authorMichael Adam <obnox@samba.org>
Mon, 21 Jun 2010 10:32:14 +0000 (12:32 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jun 2010 10:40:42 +0000 (12:40 +0200)
commit696da5d673760b122f4495d8a5cf747fb4a5ad62
tree50c73636cb8d83bf51c7ac6b11c052955bef6489
parente875e4762ab1477be513eaa56fda7d260fa6ae7e
s3:net rpc registry: make getsd succeed when key sd only gives access to SD not key contents

You don't need the REG_KEY_READ permissions to access the SD of a key.
And for instance, the key HKLM\security ususally has no specific bits
set for builtin\administrators, but the READ_CONTROL_ACCESS.
I.e. builtin\administrators can get the sd but not enumerate the key.
source3/utils/net_rpc_registry.c