aboutsummaryrefslogtreecommitdiffstats
path: root/man5
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-10-07 10:50:10 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-10-07 11:17:01 +0200
commit15869389bf37affe924167113ac724fcc3916987 (patch)
tree5dc88518cefa79312e496109eee3dfc51accc6bf /man5
parent3ed7270ea2ebe6a1817366d6277c5b4a008c7413 (diff)
downloadman-pages-15869389bf37affe924167113ac724fcc3916987.tar.gz
proc.5: Document /proc/PID/seccomp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5')
-rw-r--r--man5/proc.524
1 files changed, 24 insertions, 0 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index fd39dc25b3..ec646139a1 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -1569,6 +1569,30 @@ check; see
.\" FIXME Describe /proc/[pid]/seccomp
.\" Added in 2.6.12
.\"
+.TP
+.IR /proc/[pid]/seccomp " (Linux 2.6.12 to 2.6.22)"
+This file can be used to read and change the process's
+secure computing (seccomp) mode setting.
+It contains the value 0 if the process is not in seccomp mode,
+and 1 if the process is in strict seccomp mode (see
+.BR seccomp (2)).
+Writing 1 to this file places the process irreversibly in strict seccomp mode.
+(Further attempts to write to the file fail with the
+.B EPERM
+error.)
+
+In Linux 2.6.23,
+this file went away, to be replaced by the
+.BR prctl (2)
+.BR PR_GET_SECCOMP
+and
+.BR PR_SET_SECCOMP
+operations (and later by
+.BR seccomp (2)
+and the
+.I Seccomp
+field in
+.IR /proc/[pid]/status ).
.\" FIXME Describe /proc/[pid]/sessionid
.\" Added in 2.6.25; read-only; only readable by real UID
.\" commit 1e0bd7550ea9cf474b1ad4c6ff5729a507f75fdc