From: Joseph Sutton Date: Mon, 11 Sep 2023 03:28:00 +0000 (+1200) Subject: s4:ntvfs: Use World and System SID constants X-Git-Tag: tevent-0.16.0~379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bef3fd7e98697e2ba354dfb19dbf098f2570f8b;p=thirdparty%2Fsamba.git s4:ntvfs: Use World and System SID constants Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index b143540a950..e6432935d56 100644 --- a/source4/ntvfs/posix/pvfs_acl.c +++ b/source4/ntvfs/posix/pvfs_acl.c @@ -226,7 +226,7 @@ static NTSTATUS pvfs_default_acl(struct pvfs_state *pvfs, } /* setup other ACE */ - ace.trustee = *dom_sid_parse_talloc(req, SID_WORLD); + ace.trustee = global_sid_World; ace.access_mask = 0; if (mode & S_IROTH) { ace.access_mask |= SEC_RIGHTS_FILE_READ | SEC_FILE_EXECUTE; @@ -239,7 +239,7 @@ static NTSTATUS pvfs_default_acl(struct pvfs_state *pvfs, } /* setup system ACE */ - ace.trustee = *dom_sid_parse_talloc(req, SID_NT_SYSTEM); + ace.trustee = global_sid_System; ace.access_mask = SEC_RIGHTS_FILE_ALL; security_descriptor_dacl_add(sd, &ace);