From 541d79d7a840465fd610c0c0fe7b5cc3f675d468 Mon Sep 17 00:00:00 2001 From: mansukim1125 Date: Thu, 20 Jan 2022 00:59:41 +0900 Subject: [PATCH] fix: always occur signal 31 when executing C-based program --- src/rules/c_cpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/c_cpp.c b/src/rules/c_cpp.c index dc92453..567641e 100644 --- a/src/rules/c_cpp.c +++ b/src/rules/c_cpp.c @@ -17,7 +17,7 @@ int _c_cpp_seccomp_rules(struct config *_config, bool allow_write_file) { SCMP_SYS(close), SCMP_SYS(readlink), SCMP_SYS(sysinfo), SCMP_SYS(write), SCMP_SYS(writev), SCMP_SYS(lseek), - SCMP_SYS(clock_gettime)}; + SCMP_SYS(clock_gettime), SCMP_SYS(pread64)}; // add extra rule for pread64 int syscalls_whitelist_length = sizeof(syscalls_whitelist) / sizeof(int); scmp_filter_ctx ctx = NULL;