]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: ACLs: ignore *_INHERIT flags in file ACLs
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 11 Jan 2022 21:20:47 +0000 (22:20 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 11 Jan 2022 21:22:03 +0000 (22:22 +0100)
commita2bfe7cae61a8bac162bdb06f57d1dd15df3f4b9
treee1208fa842955cd08c0381acac2d7af5a042a2b5
parentebe756e466883b3c04d7973b47420f778345cb50
Cygwin: ACLs: ignore *_INHERIT flags in file ACLs

get_posix_access() creates DEF_*_OBJ aclent_t entries from Windows ACEs
with INHERIT flags set, independent of the file type.  These flags only
make sense on directory objects, but certain Windows functions don't
check the file type and allow INHERIT ACE flags even on non-directories.

As a fix, make sure to ignore the INHERIT flags on non-directory ACLs
and don't propagate the matching DEF_*_OBJ aclent_t entries to callers.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/release/3.3.4
winsup/cygwin/sec_acl.cc
This page took 0.03184 seconds and 5 git commands to generate.