test -x should use faccessat, not stat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This report was originally raised on the cygwin list:

http://cygwin.com/ml/cygwin/2010-02/msg00239.html

In short, in the presence of ACLs, dash's implementation of test -r, test -w, 
and test -x gives incorrect answers, when the current user has permissions to 
access a file that were granted by ACLs but not by the current stat() 
permissions.  dash should be using faccessat(,AT_EACCESS) (or 
eaccess/euidaccess) if available, rather than stat(), to determine whether a 
file is accessible.

-- 
Eric Blake


--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux