Since 2.6.20, access() honours the MS_NOEXEC mount flag.

This commit is contained in:
Michael Kerrisk 2007-02-26 14:30:21 +00:00
parent 926b6e378b
commit dc0b1e23b6
1 changed files with 11 additions and 0 deletions

View File

@ -153,6 +153,17 @@ Insufficient kernel memory was available.
.B ETXTBSY
Write access was requested to an executable which is being
executed.
.SH "LINUX NOTES"
In kernels before 2.6.20,
.BR access ()
ignored the effect of the
.B MS_NOEXEC
flag if it was used to
.BR mount (2)
the underlying file system.
Since kernel 2.6.20,
.BR access ()
honours this flag.
.SH RESTRICTIONS
.BR access ()
returns an error if any of the access types in the requested call