]> sourceware.org Git - newlib-cygwin.git/commit
Fix permission evaluation for !new_style ACLs
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 1 Sep 2015 22:05:46 +0000 (00:05 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 18 Nov 2015 21:30:38 +0000 (22:30 +0100)
commit911808dd5e86f054ec668b04366b6357885d6b85
tree6a2589c1db5ac57b96d557f4b6b536a5c66fba0b
parent7edb6b8d3e817cfb0f4c82dc9d383498d34d5380
Fix permission evaluation for !new_style ACLs

* security.h (authz_get_user_attribute): Declare bool.
* sec_helper.cc (authz_ctx::get_user_attribute): Make bool method.
Set S_IxOTH bits in returned attributes rather than S_IxUSR bits.
(authz_get_user_attribute): Make bool function.
* sec_acl.cc (get_posix_access): Introduce cygsid array to keep
track of all SIDs in the ACL.  Move AuthZ calls into !new_style
permission post processing.  When not using AuthZ, use
CheckTokenMembership to collect group permissions.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/ChangeLog
winsup/cygwin/sec_acl.cc
winsup/cygwin/sec_helper.cc
winsup/cygwin/security.h
This page took 0.030761 seconds and 5 git commands to generate.