aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2022-04-09 17:02:13 -0700
committerAndrew G. Morgan <morgan@kernel.org>2022-04-09 17:02:13 -0700
commitceaa591b012610d3fe402d33e7d7ca14716cf965 (patch)
tree7ff8a5c860be5dc8deb223fc1fc9da178a89ffe6
parent15cacf20709c6917c798e298a1e087c0663e5c13 (diff)
downloadlibcap-ceaa591b012610d3fe402d33e7d7ca14716cf965.tar.gz
Clarify how the cap_get_pid() argument is interpreted.
Addresses: https://bugzilla.kernel.org/show_bug.cgi?id=215812 Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--doc/cap_get_proc.37
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/cap_get_proc.3 b/doc/cap_get_proc.3
index 496c06e..7c3bc81 100644
--- a/doc/cap_get_proc.3
+++ b/doc/cap_get_proc.3
@@ -76,7 +76,11 @@ with the process capabilities of the process indicated by
is 0, then the calling process's capabilities are returned.)
This information can also be obtained from the
.I /proc/<pid>/status
-file.
+file. Note, when the caller is operating within a
+.RB ( CLONE_NEWPID )
+namespace, the numerical
+.I pid
+argument is interpreted in the range of that namespace.
.PP
.BR cap_get_bound ()
with a
@@ -392,5 +396,6 @@ displays the resulting privilege state.
.BR cap_from_text (3),
.BR cap_get_file (3),
.BR cap_init (3),
+.BR namespaces (7),
.BR psx_syscall (3),
.BR capabilities (7).