]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
seccomp: add riscv_hwprobe to @default
authorXeonacid <h.dwwwwww@gmail.com>
Sat, 8 Jul 2023 12:56:47 +0000 (20:56 +0800)
committerMike Yuan <me@yhndnzj.com>
Sat, 8 Jul 2023 18:26:51 +0000 (02:26 +0800)
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

index 4eae96e69a64406801ef0d4a0675a5210b858768..ed3119d14e6976b784c98ef059b949b49026b088 100644 (file)
@@ -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"