Skip to contentSkip to conversation

selftests/seccomp: Update kernel config

PATCH Applied Mickaël Salaün 2 participants 2 messages Dec 2, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/seccomp: Update kernel config

From: Mickaël Salaün <[email protected]>

seccomp_bpf.c uses unshare(CLONE_NEWPID), which requires CONFIG_PID_NS to be set.

Cc Kees Cook <[email protected]>
Cc Shuah Khan <[email protected]>
Fixes 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")

---

Previous version:
https://lore.kernel.org/lkml/[email protected]/

Changes since v1:
* Add Acked-by: Tycho Andersen <[email protected]>
* Synchronize From and Signed-off-by emails.

---
 tools/testing/selftests/seccomp/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/seccomp/config +1 -0
index 64c19d8eba79..ad431a5178fb 100644
@@ -1,3 +1,4 @@
+CONFIG_PID_NS=y
 CONFIG_SECCOMP=y
 CONFIG_SECCOMP_FILTER=y
 CONFIG_USER_NS=y

base-commit: b65054597872ce3aefbc6a666385eabdf9e288da

Signature · 1 line
2.29.2
Applied
#1 lore raw
Quoted 2 lines · Mickaël Salaün

seccomp_bpf.c uses unshare(CLONE_NEWPID), which requires CONFIG_PID_NS to be set.

Applied to for-next/seccomp, thanks!

[1/1] selftests/seccomp: Update kernel config

      https://git.kernel.org/kees/c/2c07343abd89
Signature · 1 line
Kees Cook