mount.2: ERRORS: add EPERM error for case where a mount is locked

Refer the reader to mount_namespaces(7) for details.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-08-13 22:56:30 +02:00
parent b3987057c6
commit 74ed673c59
1 changed files with 15 additions and 0 deletions

View File

@ -824,6 +824,21 @@ is out of range.
.B EPERM .B EPERM
The caller does not have the required privileges. The caller does not have the required privileges.
.TP .TP
.B EPERM
An attempt was made to modify
.RB ( MS_REMOUNT )
the
.BR MS_RDONLY ,
.BR MS_NOSUID ,
or
.BR MS_NOEXEC
flag, or one of the "atime" flags
.RB ( MS_NOATIME ,
.BR MS_NODIRATIME ,
.BR MS_RELATIME )
of an existing mount, but the mount is locked; see
.BR mount_namespaces (7).
.TP
.B EROFS .B EROFS
Mounting a read-only filesystem was attempted without giving the Mounting a read-only filesystem was attempted without giving the
.B MS_RDONLY .B MS_RDONLY