open.2: open() honors the S_ISVTX, S_ISUID, and S_ISGID bits in 'mode'

Reported-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-04-21 14:25:11 +02:00
parent 10ef5a5549
commit 9e1d8950a2
1 changed files with 19 additions and 0 deletions

View File

@ -322,6 +322,25 @@ The following symbolic constants are provided for
.B S_IXOTH
00001 others have execute permission
.RE
.IP
According to POSIX, the effect when other bits are set in
.I mode
is unspecified.
On Linux, the following bits are also honored in
.IR mode :
.RS
.TP 9
.B S_ISUID
0004000 set-user-ID bit
.TP
.B S_ISGID
0002000 set-group-ID bit (see
.BR stat (2))
.TP
.B S_ISVTX
0001000 sticky bit (see
.BR stat (2))
.RE
.TP
.BR O_DIRECT " (since Linux 2.4.10)"
Try to minimize cache effects of the I/O to and from this file.