Skip to content

Commit 6b79ecd

Browse files
masahir0ychenhuacai
authored andcommitted
LoongArch: Select HAVE_ARCH_SECCOMP to use the common SECCOMP menu
LoongArch missed the refactoring made by commit 282a181 ("seccomp: Move config option SECCOMP to arch/Kconfig") because LoongArch was not mainlined at that time. The 'depends on PROC_FS' statement is stale as described in that commit. Select HAVE_ARCH_SECCOMP, and remove the duplicated config entry. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent b3ff2d9 commit 6b79ecd

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

arch/loongarch/Kconfig

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ config LOONGARCH
100100
select HAVE_ARCH_KFENCE
101101
select HAVE_ARCH_KGDB if PERF_EVENTS
102102
select HAVE_ARCH_MMAP_RND_BITS if MMU
103+
select HAVE_ARCH_SECCOMP
103104
select HAVE_ARCH_SECCOMP_FILTER
104105
select HAVE_ARCH_TRACEHOOK
105106
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
@@ -633,23 +634,6 @@ config RANDOMIZE_BASE_MAX_OFFSET
633634

634635
This is limited by the size of the lower address memory, 256MB.
635636

636-
config SECCOMP
637-
bool "Enable seccomp to safely compute untrusted bytecode"
638-
depends on PROC_FS
639-
default y
640-
help
641-
This kernel feature is useful for number crunching applications
642-
that may need to compute untrusted bytecode during their
643-
execution. By using pipes or other transports made available to
644-
the process as file descriptors supporting the read/write
645-
syscalls, it's possible to isolate those applications in
646-
their own address space using seccomp. Once seccomp is
647-
enabled via /proc/<pid>/seccomp, it cannot be disabled
648-
and the task is only allowed to execute a few safe syscalls
649-
defined by each seccomp mode.
650-
651-
If unsure, say Y. Only embedded should say N here.
652-
653637
endmenu
654638

655639
config ARCH_SELECT_MEMORY_MODEL

0 commit comments

Comments
 (0)