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:
Corinna Vinschen 2016-04-18 15:36:34 +02:00
parent af5bbbec81
commit 12cc8290e8
1 changed files with 1 additions and 0 deletions

View File

@ -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. */ ACE or we write it to avoid calls to AuthZ from get_posix_access. */
if (!S_ISCHR (attr) if (!S_ISCHR (attr)
&& (has_class_obj && (has_class_obj
|| access != CYG_ACE_NEW_STYLE
|| ((user_obj | group_obj | other_obj) != user_obj || ((user_obj | group_obj | other_obj) != user_obj
|| (group_obj | other_obj) != group_obj)) || (group_obj | other_obj) != group_obj))
&& !add_access_denied_ace (acl, access, well_known_null_sid, acl_len, && !add_access_denied_ace (acl, access, well_known_null_sid, acl_len,