diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2010-10-24 09:25:41 +0200 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2010-10-24 09:25:41 +0200 |
commit | d8f2cf30d49544fd84494381e24acafe8eee9c3e (patch) | |
tree | 97316867d07c2f056614083ca6ea267165d9c498 /man3/euidaccess.3 | |
parent | 4713564349a9e8874078955bb03e74bc8dc74399 (diff) |
euidaccess.3: Note that the use of euidaccess() is racy
Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/euidaccess.3')
-rw-r--r-- | man3/euidaccess.3 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man3/euidaccess.3 b/man3/euidaccess.3 index e7452bfa..58349baa 100644 --- a/man3/euidaccess.3 +++ b/man3/euidaccess.3 @@ -77,6 +77,13 @@ Some other systems have an .\" e.g., FreeBSD 6.1. .BR eaccess () function. +.SH NOTES +.IR Warning : +Using this function to check a process's permissions on a file before +performing some operation based on that information leads to race conditions: +the file permissions may change between the two steps. +Generally, it is safer just to attempt the desired operation and handle +any permission error that occurs. .SH "SEE ALSO" .BR access (2), .BR chmod (2), |