mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +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:
@ -63,7 +63,7 @@ static SEC_DESC* construct_registry_sd( TALLOC_CTX *ctx )
|
|||||||
if ( !(acl = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) )
|
if ( !(acl = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) )
|
||||||
return NULL;
|
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 NULL;
|
||||||
|
|
||||||
return sd;
|
return sd;
|
||||||
|
Reference in New Issue
Block a user