[PATCH 3/4] getpcaps.8: Note that pid==0 displays capabilities of getpcaps itself

Michael Kerrisk (man-pages) mtk.manpages at gmail.com
Wed Jun 10 06:57:34 UTC 2020


When experimenting with capabilities, it's useful to know that
pid==0 causes getpcaps to display its own capabilities.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages at gmail.com>
---
 doc/getpcaps.8 | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/getpcaps.8 b/doc/getpcaps.8
index be9935f..aaaf0a2 100644
--- a/doc/getpcaps.8
+++ b/doc/getpcaps.8
@@ -10,7 +10,14 @@ getpcaps \- display process capabilities
 .B getpcaps
 displays the capabilities on the processes indicated by the
 .I pid
-value(s) given on the commandline. The capabilities are displayed in
+value(s) given on the command line.
+A
+.I pid
+of 0 displays the capabilities of the process that is running
+.B getpcaps
+itself.
+.PP
+The capabilities are displayed in
 the
 .BR cap_from_text (3)
 format.
-- 
2.26.2



More information about the Linux-security-module-archive mailing list