Also create NULL SID ACE if special POSIX bits are set
Commit e2ea143
forgot to take special POSIX bits into account.
* sec_acl.cc (set_posix_access): Make sure to create NULL SID
ACE if any special POSIX permission bits are set.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
af5bbbec81
commit
12cc8290e8
|
@ -362,6 +362,7 @@ set_posix_access (mode_t attr, uid_t uid, gid_t gid,
|
|||
ACE or we write it to avoid calls to AuthZ from get_posix_access. */
|
||||
if (!S_ISCHR (attr)
|
||||
&& (has_class_obj
|
||||
|| access != CYG_ACE_NEW_STYLE
|
||||
|| ((user_obj | group_obj | other_obj) != user_obj
|
||||
|| (group_obj | other_obj) != group_obj))
|
||||
&& !add_access_denied_ace (acl, access, well_known_null_sid, acl_len,
|
||||
|
|
Loading…
Reference in New Issue