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:57 +0000 (12:32 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 21 Jun 2010 10:38:25 +0000 (12:38 +0200)
commitb784c20df8fcafc3a5c66f847b1af58b77eeb42b
tree80cf857a06b6de8ba7c7551c228ca94da738d1a4
parente78f2b2e1eebed6950c5c99954d57bfb59c48a11
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