Skip to contentSkip to conversation

euidaccess/faccessat vs. ACLs

DISCUSSION Paolo Bonzini 1 participant 1 message Sep 18, 2014 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hi,

the euidaccess and faccessat(AT_EACCESS) functions are emulated in glibc and only look at the file's uid/gid. They do not take ACLs into account, and this can cause subtle bugs. This should be noted in the BUGS section.

Also, the AT_SYMLINK_NOFOLLOW flag to faccessat currently will not work if specified alone, because Linux does not have an laccess() system call. It works if specified together with AT_EACCESS, modulo the above ACL bug of course.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html