24 lines
958 B
Diff
24 lines
958 B
Diff
From ca15fc4820ad1ef2d54c695699de949974dc5bbc Mon Sep 17 00:00:00 2001
|
|
From: Xeonacid <h.dwwwwww@gmail.com>
|
|
Date: Sat, 8 Jul 2023 20:56:47 +0800
|
|
Subject: [PATCH] seccomp: add riscv_hwprobe to @default
|
|
|
|
This syscall is for probing hardware capabilities from userspace and should do no harm.
|
|
Added in https://github.com/torvalds/linux/commit/ea3de9ce8aa280c5175c835bd3e94a3a9b814b74
|
|
---
|
|
src/shared/seccomp-util.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
|
|
index 4eae96e69a644..ed3119d14e697 100644
|
|
--- a/src/shared/seccomp-util.c
|
|
+++ b/src/shared/seccomp-util.c
|
|
@@ -358,6 +358,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
|
|
"prlimit64\0"
|
|
"restart_syscall\0"
|
|
"riscv_flush_icache\0"
|
|
+ "riscv_hwprobe\0"
|
|
"rseq\0"
|
|
"rt_sigreturn\0"
|
|
"sched_getaffinity\0"
|