Commit 0c57ac39 authored by Jed Davis's avatar Jed Davis
Browse files

Bug 1889045 - Update sandbox policies for `epoll_pwait2`. r=gcp

Note that this can't easily be unit-tested, because the tests can't
distinguish between the real `ENOSYS` from lack of kernel support and
the fake `ENOSYS` from the sandbox.

Differential Revision: https://phabricator.services.mozilla.com/D208823
parent 898d47a1
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -218,9 +218,12 @@ class SandboxPolicyBase : public sandbox::bpf_dsl::Policy {
#ifdef __NR_epoll_wait
#  define CASES_FOR_epoll_wait \
    case __NR_epoll_wait:      \
    case __NR_epoll_pwait
    case __NR_epoll_pwait:     \
    case __NR_epoll_pwait2
#else
#  define CASES_FOR_epoll_wait case __NR_epoll_pwait
#  define CASES_FOR_epoll_wait \
    case __NR_epoll_pwait:     \
    case __NR_epoll_pwait2
#endif

#ifdef __NR_pipe