Bug 12924 - set_nt_acl doesn't set ACLs correctly
set_nt_acl doesn't set ACLs correctly
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
All All
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2017-07-21 13:58 UTC by Rowland Penny
Modified: 2018-03-02 11:08 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Rowland Penny 2017-07-21 13:58:27 UTC
If this ACL is set with 'samba-tool ntacl sysvolreset':


and immediately read it back with 'samba-tool ntacl sysvolcheck', I get this:


These two ACES:
Have Become


Has become

If you check from Windows, you get the same ACL as 'sysvolcheck'

It seems that set_nt_acl from source3/smbd/posix_acls.c isn't setting the correct ACL.
Comment 1 Jonathan Hunter 2018-03-02 11:08:10 UTC
Not sure if this is related to bug 12363 which refers to fset_nt_acl_common in source3/modules/vfs_acl_common.c