namespaces.7: Add further EINVAL cases for writes to userspace map files

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-02-19 11:52:30 +01:00
parent 0076479cdd
commit 4d2d9a106f
1 changed files with 9 additions and 0 deletions

View File

@ -633,6 +633,13 @@ Lines are terminated by newline characters.
.IP *
There is an (arbitrary) limit on the number of lines in the file.
As at Linux 3.8, the limit is five lines.
In addition,
the number of bytes written to the file cannot exceed the system page size,
and the write must be performed at the start of the file (i.e.,
.BR lseek (2)
and
.BR pwrite (2)
can't be used to write to nonzero offsets in the file).
.IP *
The range of user IDs specified in each line cannot overlap with the ranges
in any other lines.
@ -641,6 +648,8 @@ satisfied by a simplistic implementation that imposes the further
requirement that
the values in both field 1 and field 2 of successive lines must be
in ascending numerical order.
.IP *
At least one line mist be written to the file.
.PP
Writes that violate the above rules fail with the error
.BR EINVAL .