summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/ferror_u.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-03-12 17:56:21 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-03-12 17:56:21 +0100
commitfc180edcf4231fdfbc73560432bc45e926c08eaa (patch)
treefabba57010981fb1484f931a62c981b13d5af0a5 /newlib/libc/stdio/ferror_u.c
parent018fa93e2b9a78edbe58c9d6a281783aff38e527 (diff)
downloadcygnal-fc180edcf4231fdfbc73560432bc45e926c08eaa.tar.gz
cygnal-fc180edcf4231fdfbc73560432bc45e926c08eaa.tar.bz2
cygnal-fc180edcf4231fdfbc73560432bc45e926c08eaa.zip
Fix reading/writing Samba ACLs using RFC2307 mapping
When using RFC2307 uid/gid-mapping on Samba shares, the POSIX ACL contains the Windows SIDs. When writing back such an ACL we have to map the Windows SIDs back to the corresponding Samba SIDs representing the UNIX uid/gid value. When reading Samba SIDs, make sure never to evaluate a UNIX user account as group. * sec_acl.cc (set_posix_access): Convert Windows SIDs to RFC2307-mapped Sambe UNIX SIDs. * sec_helper.cc (cygpsid::get_id): Skip UNIX user accounts when trying to evaluate a SID as group. Skip UNIX group accounts when trying to evaluate a SID as user. * cygheap.h (cygheap_ugid_cache::reverse_get): New method to get nfs id from cygwin id. (cygheap_ugid_cache::reverse_get_uid): Wrapper for uids. (cygheap_ugid_cache::reverse_get_gid): Wrapper for gids. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdio/ferror_u.c')
0 files changed, 0 insertions, 0 deletions