diff mbox series

[2/4] cap_get_proc.3: for cap_get_pid(), pid==0 means "the calling process"

Message ID 20200610065735.3975740-2-mtk.manpages@gmail.com (mailing list archive)
State New, archived
Headers show
Series [1/4] cap_get_proc.3: Typo fixes | expand

Commit Message

Michael Kerrisk (man-pages) June 10, 2020, 6:57 a.m. UTC
It's useful to know that when cap_get_pid() gets pid==0,
it returns the caller's capabilities.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
---
 doc/cap_get_proc.3 | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/doc/cap_get_proc.3 b/doc/cap_get_proc.3
index c2ce212..0238601 100644
--- a/doc/cap_get_proc.3
+++ b/doc/cap_get_proc.3
@@ -78,6 +78,9 @@  see
 .BR cap_init (3),
 with the process capabilities of the process indicated by
 .IR pid .
+(If
+.I pid
+is 0, then the calling process's capabilities are returned.)
 This information can also be obtained from the
 .I /proc/<pid>/status
 file.