All of lore.kernel.org
 help / color / mirror / Atom feed
* test -x should use faccessat, not stat
@ 2010-02-10 15:32 Eric Blake
  2010-02-14  6:11 ` Herbert Xu
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Blake @ 2010-02-10 15:32 UTC (permalink / raw)
  To: dash

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-02 15:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10 15:32 test -x should use faccessat, not stat Eric Blake
2010-02-14  6:11 ` Herbert Xu
2010-02-15 13:31   ` Eric Blake
2010-02-16 12:04     ` Herbert Xu
2010-04-02 14:03       ` Herbert Xu
2010-04-02 14:57         ` Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.