sandbox-sched_setscheduler.patch 609 B

1234567891011121314151617
  1. upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1657849
  2. --- a/security/sandbox/linux/SandboxFilter.cpp
  3. +++ b/security/sandbox/linux/SandboxFilter.cpp
  4. @@ -1694,10 +1694,10 @@
  5. return Allow();
  6. case __NR_sched_get_priority_min:
  7. case __NR_sched_get_priority_max:
  8. + case __NR_sched_setscheduler:
  9. return Allow();
  10. case __NR_sched_getparam:
  11. - case __NR_sched_getscheduler:
  12. - case __NR_sched_setscheduler: {
  13. + case __NR_sched_getscheduler: {
  14. Arg<pid_t> pid(0);
  15. return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr));
  16. }