mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Use BUILTIN\administrators as owner of the default registry key security descriptor.
Michael
(This used to be commit 52e9815765
)
This commit is contained in:
parent
8ba088516a
commit
d38e756feb
@ -63,7 +63,7 @@ static SEC_DESC* construct_registry_sd( TALLOC_CTX *ctx )
|
||||
if ( !(acl = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) )
|
||||
return NULL;
|
||||
|
||||
if ( !(sd = make_sec_desc(ctx, SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE, NULL, NULL, NULL, acl, &sd_size)) )
|
||||
if ( !(sd = make_sec_desc(ctx, SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE, &global_sid_Builtin_Administrators, NULL, NULL, acl, &sd_size)) )
|
||||
return NULL;
|
||||
|
||||
return sd;
|
||||
|
Loading…
Reference in New Issue
Block a user