aboutsummaryrefslogtreecommitdiffstats
path: root/man7/capabilities.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-07-17 04:19:01 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-07-17 04:19:01 +0200
commit3b13efed75e67da9c4d501bedd77a30052afa7be (patch)
tree447b8df54c573e41846d2a3b746b3e33618ef2a0 /man7/capabilities.7
parent4d4708bfd2d03c430d94017173a556bd6472b660 (diff)
downloadman-pages-3b13efed75e67da9c4d501bedd77a30052afa7be.tar.gz
capabilities.7: Add a note about using strace on binaries that have capabilities
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/capabilities.7')
-rw-r--r--man7/capabilities.714
1 files changed, 14 insertions, 0 deletions
diff --git a/man7/capabilities.7 b/man7/capabilities.7
index e9f46487aa..bdf36c9a40 100644
--- a/man7/capabilities.7
+++ b/man7/capabilities.7
@@ -1671,6 +1671,20 @@ is based on the withdrawn POSIX.1e draft standard; see
.UR https://archive.org\:/details\:/posix_1003.1e-990310
.UE .
.SH NOTES
+When attempting to
+.BR strace (1)
+binaries that have capabilities (or set-user-ID-root binaries),
+you may find the
+.I \-u <username>
+option useful.
+Something like:
+.PP
+.in +4n
+.EX
+$ \fBsudo strace \-o trace.log \-u ceci ./myprivprog\fP
+.EE
+.in
+.PP
From kernel 2.5.27 to kernel 2.6.26,
.\" commit 5915eb53861c5776cfec33ca4fcc1fd20d66dd27 removed
.\" CONFIG_SECURITY_CAPABILITIES