| Index: sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
|
| diff --git a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
|
| index 4e855c59ef3bd583eed8edae1710f25a34b669af..31f30208dc687130741da3ad80faf51e9ffc3ede 100644
|
| --- a/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
|
| +++ b/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h
|
| @@ -47,6 +47,16 @@ SANDBOX_EXPORT intptr_t
|
| // argument.
|
| SANDBOX_EXPORT intptr_t
|
| SIGSYSFutexFailure(const struct arch_seccomp_data& args, void* aux);
|
| +// If the syscall is not being called on the current tid, crashes in the same
|
| +// way as CrashSIGSYS_Handler. Otherwise, returns the result of calling the
|
| +// syscall with the pid argument set to 0 (which for these calls means the
|
| +// current thread). The following syscalls are supported:
|
| +//
|
| +// sched_getaffinity(), sched_getattr(), sched_getparam(), sched_getscheduler(),
|
| +// sched_rr_get_interval(), sched_setaffinity(), sched_setattr(),
|
| +// sched_setparam(), sched_setscheduler()
|
| +SANDBOX_EXPORT intptr_t
|
| + SIGSYSSchedHandler(const struct arch_seccomp_data& args, void* aux);
|
|
|
| // Variants of the above functions for use with bpf_dsl.
|
| SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYS();
|
| @@ -55,6 +65,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSPrctl();
|
| SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSIoctl();
|
| SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSKill();
|
| SANDBOX_EXPORT bpf_dsl::ResultExpr CrashSIGSYSFutex();
|
| +SANDBOX_EXPORT bpf_dsl::ResultExpr RewriteSchedSIGSYS();
|
|
|
| // Following four functions return substrings of error messages used
|
| // in the above four functions. They are useful in death tests.
|
|
|