| 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 42d98bbcabce3d52c320d3466eff33be8fb9acae..64a6bb0727900b5090b4f961e28641cc10363556 100644
|
| --- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
| +++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
| @@ -304,4 +304,9 @@ ResultExpr RestrictPrlimit64(pid_t target_pid) {
|
| return If(pid == 0 || pid == target_pid, Allow()).Else(CrashSIGSYS());
|
| }
|
|
|
| +ResultExpr RestrictGetrusage() {
|
| + const Arg<int> who(0);
|
| + return If(who == RUSAGE_SELF, Allow()).Else(CrashSIGSYS());
|
| +}
|
| +
|
| } // namespace sandbox.
|
|
|