]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
seccomp: Fix CONFIG tests for Seccomp_filters
authorKenta.Tada@sony.com <Kenta.Tada@sony.com>
Sun, 21 Mar 2021 15:52:19 +0000 (15:52 +0000)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:29 +0000 (17:46 -0600)
commit86cd420442f2f1af0f22d033de1e678ad8874279
treec3bc736dce01f1bddcbb5f87c6732cd594aacce5
parent3b5e7f63791d80fed7bb389a2c8f5afba2bbe279
seccomp: Fix CONFIG tests for Seccomp_filters

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit 64bdc0244054f7d4bb621c8b4455e292f4e421bc ]

Strictly speaking, seccomp filters are only used
when CONFIG_SECCOMP_FILTER.
This patch fixes the condition to enable "Seccomp_filters"
in /proc/$pid/status.

Signed-off-by: Kenta Tada <Kenta.Tada@sony.com>
Fixes: c818c03b661c ("seccomp: Report number of loaded filters in /proc/$pid/status")
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/OSBPR01MB26772D245E2CF4F26B76A989F5669@OSBPR01MB2677.jpnprd01.prod.outlook.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/proc/array.c
init/init_task.c