We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4541014 commit 54be775Copy full SHA for 54be775
src/seccomp/policy/DefaultPolicy.cc
@@ -44,8 +44,7 @@ void DefaultPolicy::addExecutionControlRules(bool allowFork) {
44
"clock_nanosleep",
45
"open",
46
"epoll_create1",
47
- "openat",
48
- "rseq"});
+ "openat"});
49
50
rules_.emplace_back(SeccompRule(
51
"set_thread_area", action::ActionTrace([](auto& /* tracee */) {
@@ -87,6 +86,10 @@ void DefaultPolicy::addExecutionControlRules(bool allowFork) {
87
86
rules_.emplace_back(SeccompRule(syscall, action::ActionTrace()));
88
}
89
+ for (const auto& syscall: {"rseq"}) {
90
+ rules_.emplace_back(SeccompRule(syscall, action::ActionErrno(ENOSYS)));
91
+ }
92
+
93
if (allowFork) {
94
allowSyscalls({"fork"});
95
0 commit comments