Index: sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
index 82cdc8dd9011a1bcbb468f739be23714e97e2f6c..2d3e7dec02343187e6a349164afdf8c31a2fd1dd 100644 |
--- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc |
@@ -286,5 +286,9 @@ ResultExpr RestrictSchedTarget(pid_t target_pid, int sysno) { |
} |
} |
+ResultExpr RestrictPrlimit64(pid_t target_pid) { |
+ const Arg<pid_t> pid(0); |
+ return If(pid == 0 || pid == target_pid, Allow()).Else(CrashSIGSYS()); |
+} |
} // namespace sandbox. |