commit:     c72d1d6b55f7eb2d23edd4578a0f1f0a9490c35b
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  2 22:27:34 2021 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Mon Aug  2 22:34:23 2021 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c72d1d6b

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 <AT> gentoo.org>
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index c063c6d..f875dba 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

Reply via email to