]> granicus.if.org Git - python/commitdiff
bug [ 872769 ] os.access() documentation should stress race conditions
authorGeorg Brandl <georg@python.org>
Sun, 17 Jul 2005 21:10:11 +0000 (21:10 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 Jul 2005 21:10:11 +0000 (21:10 +0000)
Doc/lib/libos.tex

index 2fbe66936f898f12ba6faadd1998699b877a6cde..e5b5962d99b8c76ec9ebc350d3e89549093d79bd 100644 (file)
@@ -680,6 +680,11 @@ test permissions.  Return \constant{True} if access is allowed,
 \constant{False} if not.
 See the \UNIX{} man page \manpage{access}{2} for more information.
 Availability: Macintosh, \UNIX, Windows.
+
+\note{Using \function{access()} to check if a user is authorized to e.g.
+open a file before actually doing so using \function{open()} creates a 
+security hole, because the user might exploit the short time interval 
+between checking and opening the file to manipulate it.}
 \end{funcdesc}
 
 \begin{datadesc}{F_OK}