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};
68
68
#define __NR_copy_file_range 326
69
69
#endif
70
70
71
+ #ifndef __NR_rseq
72
+ #define __NR_rseq 334
73
+ #endif
74
+
71
75
// This list of syscalls in LINUX_SYSCALLS is only used to map syscall numbers to syscall names in
72
76
// order to be able to print user friendly error messages which include the syscall name in addition
73
77
// to the syscall number.
@@ -327,6 +331,7 @@ const std::map<uint32_t, std::string> LINUX_SYSCALLS{
327
331
{__NR_request_key, " request_key" },
328
332
{__NR_restart_syscall, " restart_syscall" },
329
333
{__NR_rmdir, " rmdir" },
334
+ {__NR_rseq, " rseq" },
330
335
{__NR_rt_sigaction, " rt_sigaction" },
331
336
{__NR_rt_sigpending, " rt_sigpending" },
332
337
{__NR_rt_sigprocmask, " rt_sigprocmask" },
@@ -723,6 +728,7 @@ class SeccompPolicyBuilder
723
728
allowed_syscalls.insert (__NR_fork); // create a child process
724
729
allowed_syscalls.insert (__NR_tgkill); // send a signal to a thread
725
730
allowed_syscalls.insert (__NR_wait4); // wait for process to change state, BSD style
731
+ allowed_syscalls.insert (__NR_rseq); // register restartable sequence for thread
726
732
}
727
733
728
734
void AllowScheduling ()
You can’t perform that action at this time.
0 commit comments