seccomp: Report number of loaded filters in /proc/$pid/status
authorKees Cook <keescook@chromium.org>
Wed, 13 May 2020 21:11:26 +0000 (14:11 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jul 2020 23:01:51 +0000 (16:01 -0700)
commitc818c03b661cd769e035e41673d5543ba2ebda64
treeceb9cf9666ce0e0e3964c1ff1a0a5949de471cf6
parente4d05028a07f505a08802a6d1b11674c149df2b3
seccomp: Report number of loaded filters in /proc/$pid/status

A common question asked when debugging seccomp filters is "how many
filters are attached to your process?" Provide a way to easily answer
this question through /proc/$pid/status with a "Seccomp_filters" line.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/proc/array.c
include/linux/seccomp.h
init/init_task.c
kernel/seccomp.c