File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ bool g_syscall_sandbox_log_violation_before_terminating{false};
6868#define __NR_copy_file_range 326
6969#endif
7070
71+ #ifndef __NR_rseq
72+ #define __NR_rseq 334
73+ #endif
74+
7175// This list of syscalls in LINUX_SYSCALLS is only used to map syscall numbers to syscall names in
7276// order to be able to print user friendly error messages which include the syscall name in addition
7377// to the syscall number.
@@ -327,6 +331,7 @@ const std::map<uint32_t, std::string> LINUX_SYSCALLS{
327331 {__NR_request_key, " request_key" },
328332 {__NR_restart_syscall, " restart_syscall" },
329333 {__NR_rmdir, " rmdir" },
334+ {__NR_rseq, " rseq" },
330335 {__NR_rt_sigaction, " rt_sigaction" },
331336 {__NR_rt_sigpending, " rt_sigpending" },
332337 {__NR_rt_sigprocmask, " rt_sigprocmask" },
@@ -723,6 +728,7 @@ class SeccompPolicyBuilder
723728 allowed_syscalls.insert (__NR_fork); // create a child process
724729 allowed_syscalls.insert (__NR_tgkill); // send a signal to a thread
725730 allowed_syscalls.insert (__NR_wait4); // wait for process to change state, BSD style
731+ allowed_syscalls.insert (__NR_rseq); // register restartable sequence for thread
726732 }
727733
728734 void AllowScheduling ()
You can’t perform that action at this time.
0 commit comments