newlib-cygwin/winsup/cygwin/sec
Takashi Yano a0933cd17d Cygwin: access: Correction for samba/SMB share
Previously, access() and eaccess() does not determine the permissions
for files on samba/SMB share correctly. Even if the user logs-in as
the owner of the file, access() and eaccess() referes to others'
permissions. With this patch, to determine the permissions correctly,
NtOpenFile() with desired access mask is used.

Fixes: cf762b08cf ("* security.cc (check_file_access): Create.")
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
2024-12-11 07:32:22 +09:00
..
acl.cc Cygwin: get_posix_access: do not merge permissions for just created files 2023-07-21 21:57:44 +02:00
auth.cc
base.cc Cygwin: access: Correction for samba/SMB share 2024-12-11 07:32:22 +09:00
helper.cc
posixacl.cc