mount.2: Since Linux 2.6.26, bind mounts can be made read-only

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-06-03 11:12:31 -05:00
parent 16008a4146
commit f5da58a8f2
1 changed files with 12 additions and 0 deletions

View File

@ -313,6 +313,18 @@ and, additionally, before kernel 2.4.10, the following could also be changed:
.BR MS_NODEV ,
and
.BR MS_NOEXEC .
Since Linux 2.6.26, this flag can also be used to make
.\" See https://lwn.net/Articles/281157/
an existing bind mount read-only by specifying
.IR mountflags
as:
MS_REMOUNT | MS_BIND | MS_RDONLY
Note that only the
.BR MS_RDONLY
setting of the bind mount can be changed in this manner.
.TP
.BR MS_SILENT " (since Linux 2.6.17)"
Suppress the display of certain