CONTRIBUTING.d/patches: Please provide a git-range-diff(1)
[man-pages.git] / man5 / proc_pid_seccomp.5
blob2002c45edcb88ca2df3d2187a8b601f61600970a
1 .\" Copyright (C) 1994, 1995, Daniel Quinlan <quinlan@yggdrasil.com>
2 .\" Copyright (C) 2002-2008, 2017, Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" Copyright (C) 2023, Alejandro Colomar <alx@kernel.org>
4 .\"
5 .\" SPDX-License-Identifier: GPL-3.0-or-later
6 .\"
7 .TH proc_pid_seccomp 5 (date) "Linux man-pages (unreleased)"
8 .SH NAME
9 /proc/pid/seccomp \- secure computing mode
10 .SH DESCRIPTION
11 .TP
12 .IR /proc/ pid /seccomp " (Linux 2.6.12 to Linux 2.6.22)"
13 This file can be used to read and change the process's
14 secure computing (seccomp) mode setting.
15 It contains the value 0 if the process is not in seccomp mode,
16 and 1 if the process is in strict seccomp mode (see
17 .BR seccomp (2)).
18 Writing 1 to this file places the process irreversibly in strict seccomp mode.
19 (Further attempts to write to the file fail with the
20 .B EPERM
21 error.)
22 .IP
23 In Linux 2.6.23,
24 this file went away, to be replaced by the
25 .BR prctl (2)
26 .B PR_GET_SECCOMP
27 and
28 .B PR_SET_SECCOMP
29 operations (and later by
30 .BR seccomp (2)
31 and the
32 .I Seccomp
33 field in
34 .IR /proc/ pid /status ).
35 .SH SEE ALSO
36 .BR proc (5)