aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man7/namespaces.79
1 files changed, 9 insertions, 0 deletions
diff --git a/man7/namespaces.7 b/man7/namespaces.7
index fbf41f4926..a2f1d8df2a 100644
--- a/man7/namespaces.7
+++ b/man7/namespaces.7
@@ -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 .