Skip to content

Commit

Permalink
fix: always occur signal 31 when executing C-based program
Browse files Browse the repository at this point in the history
  • Loading branch information
mansukim1125 committed Jan 19, 2022
1 parent 57ac33a commit 541d79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/c_cpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 541d79d

Please sign in to comment.