aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-06-11 02:09:17 +0200
committerAlejandro Colomar <alx@kernel.org>2024-06-13 23:54:50 +0200
commitebc5e0a8bc89552f9fc92f34e8e9301fee58c17f (patch)
treef5f24a17fcac7a04dfd911a204639e959af3d3d6
parent9eb2052aadc3aa1d2a53329c84b7fd6616d69e0e (diff)
downloadman-pages-ebc5e0a8bc89552f9fc92f34e8e9301fee58c17f.tar.gz
ioctl_nsfs.2, NS_GET_OWNER_UID.2const: Split NS_GET_OWNER_UID from ioctl_nsfs(2)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2/ioctl_nsfs.232
-rw-r--r--man/man2const/NS_GET_OWNER_UID.2const46
2 files changed, 48 insertions, 30 deletions
diff --git a/man/man2/ioctl_nsfs.2 b/man/man2/ioctl_nsfs.2
index b1840c8405..387a6cd1da 100644
--- a/man/man2/ioctl_nsfs.2
+++ b/man/man2/ioctl_nsfs.2
@@ -17,38 +17,9 @@ ioctl() operations for Linux namespaces
.SS Discovering the namespace type
.TP
.B NS_GET_NSTYPE
-.\" ============================================================
-.\"
.SS Discovering the owner of a user namespace
-The
-.B NS_GET_OWNER_UID
-.\" commit 015bb305b8ebe8d601a238ab70ebdc394c7a19ba
-operation (available since Linux 4.11) can be used to discover
-the owner user ID of a user namespace (i.e., the effective user ID
-of the process that created the user namespace).
-The form of the call is:
-.P
-.in +4n
-.EX
-uid_t uid;
-ioctl(fd, NS_GET_OWNER_UID, &uid);
-.EE
-.in
-.P
-.I fd
-refers to a
-.IR /proc/ pid /ns/user
-file.
-.P
-The owner user ID is returned in the
-.I uid_t
-pointed to by the third argument.
-.P
-This operation can fail with the following error:
.TP
-.B EINVAL
-.I fd
-does not refer to a user namespace.
+.B NS_GET_OWNER_UID
.SH ERRORS
Any of the above
.BR ioctl ()
@@ -66,6 +37,7 @@ Linux.
.BR NS_GET_USERNS (2const),
.BR NS_GET_PARENT (2const),
.BR NS_GET_NSTYPE (2const),
+.BR NS_GET_OWNER_UID (2const),
.BR fstat (2),
.BR proc (5),
.BR namespaces (7)
diff --git a/man/man2const/NS_GET_OWNER_UID.2const b/man/man2const/NS_GET_OWNER_UID.2const
new file mode 100644
index 0000000000..3b92537407
--- /dev/null
+++ b/man/man2const/NS_GET_OWNER_UID.2const
@@ -0,0 +1,46 @@
+.\" Copyright 2017, Michael Kerrisk <mtk.manpages@gmail.com>
+.\"
+.\" SPDX-License-Identifier: Linux-man-pages-copyleft
+.\"
+.TH NS_GET_OWNER_UID 2const (date) "Linux man-pages (unreleased)"
+.SH NAME
+NS_GET_OWNER_UID
+\-
+discovering the owner of a user namespace
+.SH DESCRIPTION
+The
+.B NS_GET_OWNER_UID
+.\" commit 015bb305b8ebe8d601a238ab70ebdc394c7a19ba
+operation (available since Linux 4.11) can be used to discover
+the owner user ID of a user namespace (i.e., the effective user ID
+of the process that created the user namespace).
+The form of the call is:
+.P
+.in +4n
+.EX
+uid_t uid;
+ioctl(fd, NS_GET_OWNER_UID, &uid);
+.EE
+.in
+.P
+.I fd
+refers to a
+.IR /proc/ pid /ns/user
+file.
+.P
+The owner user ID is returned in the
+.I uid_t
+pointed to by the third argument.
+.P
+This operation can fail with the following error:
+.TP
+.B EINVAL
+.I fd
+does not refer to a user namespace.
+.SH ERRORS
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.SH SEE ALSO
+.BR ioctl (2),
+.BR ioctl_nsfs (2)