summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCeleste Liu <CoelacanthusHex@gmail.com>2022-10-16 10:47:17 +0800
committerLuca Boccassi <luca.boccassi@gmail.com>2022-10-16 12:40:00 +0200
commit09925036cf2b5a5c4cf680422a38c427ca692cd6 (patch)
treef9242fd964f76048cf81086e147a370b66faf38a /src
parent3e15bed410ff616f5015b4e87eb25d1fee8828e5 (diff)
downloadsystemd-09925036cf2b5a5c4cf680422a38c427ca692cd6.tar.gz
seccomp: add riscv_flush_icache to allow list
This system call is harmless because it only enforces ordering between stores and instruction cache fetch. fixed #24991 Related: https://github.com/felixonmars/archriscv-packages/issues/1840 Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/shared/seccomp-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c
index 1247da535d..dfac4da7cc 100644
--- a/src/shared/seccomp-util.c
+++ b/src/shared/seccomp-util.c
@@ -356,6 +356,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
"pause\0"
"prlimit64\0"
"restart_syscall\0"
+ "riscv_flush_icache\0"
"rseq\0"
"rt_sigreturn\0"
"sched_getaffinity\0"