diff options
author | Mike Pagano <mpagano@gentoo.org> | 2021-08-02 18:27:34 -0400 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2021-08-02 18:27:34 -0400 |
commit | 3430718fc7db8c5473c83de510a1e0332c0e74ef (patch) | |
tree | f2e49acf6061e9c2f7e47c986ccafee6e9aafc65 | |
parent | Fix DEVMEM Select and move help text (diff) | |
download | linux-patches-3430718fc7db8c5473c83de510a1e0332c0e74ef.tar.gz linux-patches-3430718fc7db8c5473c83de510a1e0332c0e74ef.tar.bz2 linux-patches-3430718fc7db8c5473c83de510a1e0332c0e74ef.zip |
Select SECCOMP options only if supported
Thanks to Matt Turner for this patch
Some architectures (e.g., alpha, sparc) do not support SECCOMP.
Without this kernel builds will show:
WARNING: unmet direct dependencies detected for SECCOMP
Depends on [n]: HAVE_ARCH_SECCOMP [=n]
Selected by [y]:
- GENTOO_LINUX_INIT_SYSTEMD [=y] && GENTOO_LINUX [=y] && GENTOO_LINUX_UDEV [=y]
WARNING: unmet direct dependencies detected for SECCOMP_FILTER
Depends on [n]: HAVE_ARCH_SECCOMP_FILTER [=n] && SECCOMP [=y] && NET [=y]
Selected by [y]:
- GENTOO_LINUX_INIT_SYSTEMD [=y] && GENTOO_LINUX [=y] && GENTOO_LINUX_UDEV [=y]
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
-rw-r--r-- | 4567_distro-Gentoo-Kconfig.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index c063c6d3..f875dba6 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -138,8 +138,8 @@ + select NET + select NET_NS + select PROC_FS -+ select SECCOMP -+ select SECCOMP_FILTER ++ select SECCOMP if HAVE_ARCH_SECCOMP ++ select SECCOMP_FILTER HAVE_ARCH_SECCOMP_FILTER + select SIGNALFD + select SYSFS + select TIMERFD @@ -188,8 +188,8 @@ + select DEBUG_SG + select BUG_ON_DATA_CORRUPTION + select SCHED_STACK_END_CHECK -+ select SECCOMP -+ select SECCOMP_FILTER ++ select SECCOMP if HAVE_ARCH_SECCOMP ++ select SECCOMP_FILTER HAVE_ARCH_SECCOMP_FILTER + select SECURITY_YAMA + select SLAB_FREELIST_RANDOM + select SLAB_FREELIST_HARDENED |