This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Also create NULL SID ACE if special POSIX bits are set
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 18 Apr 2016 13:36:44 -0000
- Subject: [newlib-cygwin] Also create NULL SID ACE if special POSIX bits are set
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=12cc8290e85cee8258ce1857a570506344401bbe
commit 12cc8290e85cee8258ce1857a570506344401bbe
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon Apr 18 15:36:34 2016 +0200
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>
Diff:
---
winsup/cygwin/sec_acl.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc
index 138fd3e..c8de174 100644
--- a/winsup/cygwin/sec_acl.cc
+++ b/winsup/cygwin/sec_acl.cc
@@ -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,