summaryrefslogtreecommitdiffstats
path: root/sys-utils/setpriv.1
diff options
context:
space:
mode:
authorPatrick Steinhardt2017-07-20 08:30:04 +0200
committerKarel Zak2017-08-01 11:52:31 +0200
commit55b3fe7824c261b6b3d2a8869a8cb509fdd2569f (patch)
tree97c004d76ca2bcc3c26cd7ccab91b5174ed60f6c /sys-utils/setpriv.1
parenthwclock: remove custom errno string (diff)
downloadkernel-qcow2-util-linux-55b3fe7824c261b6b3d2a8869a8cb509fdd2569f.tar.gz
kernel-qcow2-util-linux-55b3fe7824c261b6b3d2a8869a8cb509fdd2569f.tar.xz
kernel-qcow2-util-linux-55b3fe7824c261b6b3d2a8869a8cb509fdd2569f.zip
setpriv: document accepted formats for naming caps
Since commit fbd15c4d4 (setpriv: support setting unnamed capabilities, 2017-07-17), it is possible to name capabilities not only by name, but also by their index. While using the human-readable name is usually recommended, using the index may be required in case new capabilities have been introduced to the kernel for which we have no name yet. The newly introduce format format is not documented inside of setpriv(1), though, which is being fixed in this commit. Signed-off-by: Patrick Steinhardt <ps@pks.im>
Diffstat (limited to 'sys-utils/setpriv.1')
-rw-r--r--sys-utils/setpriv.17
1 files changed, 6 insertions, 1 deletions
diff --git a/sys-utils/setpriv.1 b/sys-utils/setpriv.1
index b0cc33a2b..75dadeca8 100644
--- a/sys-utils/setpriv.1
+++ b/sys-utils/setpriv.1
@@ -34,7 +34,12 @@ The argument is a comma-separated list of
.BI + cap
and
.BI \- cap
-entries, which add or remove an entry respectively.
+entries, which add or remove an entry respectively. \fIcap\fR can either be a
+human-readable name as seen in
+.BR capabilities (7)
+without the \fIcap_\fR prefix or of the format
+.BI cap_N ,
+where \fIN\fR is the internal capability index used by Linux.
.B +all
and
.B \-all