summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kerrisk (man-pages) <mtk.manpages@gmail.com>2020-07-16 12:18:22 +0200
committerAndrew G. Morgan <morgan@kernel.org>2020-07-16 07:49:04 -0700
commitd679382fe3a165f8fb16c7dcb6a4253cc463f7ef (patch)
tree933b3acbf9c361f4c9c61c6ac7410509f30d6f89
parent8b25610dd0698c30b37983a74e5db7036d986538 (diff)
downloadlibcap2-d679382fe3a165f8fb16c7dcb6a4253cc463f7ef.tar.gz
Manual pages: capsh.1: Correct/update the Cap field example for /proc/PID/status
The /proc/1/status output shown for --decode=N is bogus (e.g., ffffffffffffffff == 64 capability bits). Furthermore, showing CAP_SETPCAP as missing from CapEff is historical, and ceased to be actual more than 10 years ago. Replace with a more current example, and also add the CapAmb field. This change renders some of the following text obsolete; that will be fixed in the next patch. Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com> Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--doc/capsh.19
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/capsh.1 b/doc/capsh.1
index 522e719..916353a 100644
--- a/doc/capsh.1
+++ b/doc/capsh.1
@@ -198,10 +198,11 @@ This is a convenience feature. If you look at
there are some capability related fields of the following form:
.nf
- CapInh: 0000000000000000
- CapPrm: ffffffffffffffff
- CapEff: fffffffffffffeff
- CapBnd: ffffffffffffffff
+CapInh: 0000000000000000
+CapPrm: 0000003fffffffff
+CapEff: 0000003fffffffff
+CapBnd: 0000003fffffffff
+CapAmb: 0000000000000000
.fi
This option provides a quick way to decode a capability vector