Automated rollback of commit 5f34d11e77.

PiperOrigin-RevId: 432491462
Change-Id: Id92eabbb140df85b7b48f6f107ef9f44c3c6dff5
This commit is contained in:
Sandboxed API Team 2022-03-04 11:18:44 -08:00 committed by Copybara-Service
parent 5f34d11e77
commit 8e82b900f4
2 changed files with 0 additions and 23 deletions

View File

@ -113,19 +113,6 @@ PolicyBuilder& PolicyBuilder::OverridableBlockSyscallWithErrno(uint32_t num,
return *this;
}
PolicyBuilder& PolicyBuilder::AllowEpoll() {
return AllowSyscalls({
__NR_epoll_create,
__NR_epoll_create1,
__NR_epoll_ctl,
__NR_epoll_wait,
__NR_epoll_pwait,
#ifdef __NR_epoll_pwait2
__NR_epoll_pwait2,
#endif
});
}
PolicyBuilder& PolicyBuilder::AllowExit() {
return AllowSyscalls({__NR_exit, __NR_exit_group});
}

View File

@ -120,16 +120,6 @@ class PolicyBuilder final {
// Appends code to block a specific syscall and setting errno.
PolicyBuilder& BlockSyscallWithErrno(uint32_t num, int error);
// Appends code to allow using epoll.
// Allows these syscalls:
// - epoll_create
// - epoll_create1
// - epoll_ctl
// - epoll_wait
// - epoll_pwait
// - epoll_pwait2
PolicyBuilder& AllowEpoll();
// Appends code to allow exiting.
// Allows these syscalls:
// - exit