mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gabriel Changamire <gaberashawn@gmail.com>
To: Kees Cook <kees@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>,
	Will Drewry <wad@chromium.org>, Shuah Khan <shuah@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>,
	Randy Dunlap <rdunlap@infradead.org>,
	linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	Gabriel Changamire <gaberashawn@gmail.com>
Subject: [PATCH 1/2] docs: proc: document Seccomp_filters in /proc/PID/status
Date: Wed,  2 Dec 2026 08:13:42 +0000	[thread overview]
Message-ID: <20261202081343.9325-2-gaberashawn@gmail.com> (raw)
In-Reply-To: <20261202081343.9325-1-gaberashawn@gmail.com>

Commit c818c03b661c ("seccomp: Report number of loaded filters in
/proc/$pid/status") added a Seccomp_filters line to /proc/PID/status
in v5.9, but the field was never added to the documentation.

Add it to the example output and to Table 1-2, next to the existing
Seccomp entry.

Signed-off-by: Gabriel Changamire <gaberashawn@gmail.com>
---
 Documentation/filesystems/proc.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst
index fa7a468e8edf..36a59f38e1c8 100644
--- a/Documentation/filesystems/proc.rst
+++ b/Documentation/filesystems/proc.rst
@@ -202,6 +202,7 @@ read the file /proc/PID/status::
   CapAmb: 0000000000000000
   NoNewPrivs:     0
   Seccomp:        0
+  Seccomp_filters:        0
   Speculation_Store_Bypass:       thread vulnerable
   SpeculationIndirectBranch:      conditional enabled
   voluntary_ctxt_switches:        0
@@ -288,6 +289,7 @@ It's slow but very precise.
  CapAmb                      bitmap of ambient capabilities
  NoNewPrivs                  no_new_privs, like prctl(PR_GET_NO_NEW_PRIV, ...)
  Seccomp                     seccomp mode, like prctl(PR_GET_SECCOMP, ...)
+ Seccomp_filters             number of seccomp filters attached to the task
  Speculation_Store_Bypass    speculative store bypass mitigation status
  SpeculationIndirectBranch   indirect branch speculation mode
  Cpus_allowed                mask of CPUs on which this process may run
-- 
2.47.3


  reply	other threads:[~2026-12-02  8:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  8:13 [PATCH 0/2] seccomp: document and test " Gabriel Changamire
2026-12-02  8:13 ` Gabriel Changamire [this message]
2026-12-02  8:13 ` [PATCH 2/2] selftests/seccomp: test filter reporting " Gabriel Changamire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202081343.9325-2-gaberashawn@gmail.com \
    --to=gaberashawn@gmail.com \
    --cc=corbet@lwn.net \
    --cc=kees@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=rdunlap@infradead.org \
    --cc=shuah@kernel.org \
    --cc=wad@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®