mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Automated rollback of commit 5f34d11e77
.
PiperOrigin-RevId: 432491462 Change-Id: Id92eabbb140df85b7b48f6f107ef9f44c3c6dff5
This commit is contained in:
parent
5f34d11e77
commit
8e82b900f4
|
@ -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});
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user