Whitelist syscalls provided by vDSO.
This commit is contained in:
parent
7d5b6ddc7e
commit
483ca6752d
@ -153,6 +153,11 @@ static int enforce_seccomp(void)
|
|||||||
#ifdef __NR_sigreturn
|
#ifdef __NR_sigreturn
|
||||||
ALLOW_SYSCALL(sigreturn),
|
ALLOW_SYSCALL(sigreturn),
|
||||||
#endif
|
#endif
|
||||||
|
// Allowed by vDSO
|
||||||
|
ALLOW_SYSCALL(getcpu),
|
||||||
|
ALLOW_SYSCALL(time),
|
||||||
|
ALLOW_SYSCALL(gettimeofday),
|
||||||
|
|
||||||
ALLOW_SYSCALL(exit_group),
|
ALLOW_SYSCALL(exit_group),
|
||||||
ALLOW_SYSCALL(exit),
|
ALLOW_SYSCALL(exit),
|
||||||
KILL_PROCESS,
|
KILL_PROCESS,
|
||||||
|
@ -134,6 +134,12 @@ static int enforce_seccomp(void)
|
|||||||
ALLOW_SYSCALL(connect),
|
ALLOW_SYSCALL(connect),
|
||||||
ALLOW_SYSCALL(getsockname),
|
ALLOW_SYSCALL(getsockname),
|
||||||
|
|
||||||
|
// Allowed by vDSO
|
||||||
|
ALLOW_SYSCALL(getcpu),
|
||||||
|
ALLOW_SYSCALL(time),
|
||||||
|
ALLOW_SYSCALL(gettimeofday),
|
||||||
|
ALLOW_SYSCALL(clock_gettime),
|
||||||
|
|
||||||
// These are for 'write_leasefile()'
|
// These are for 'write_leasefile()'
|
||||||
ALLOW_SYSCALL(ftruncate),
|
ALLOW_SYSCALL(ftruncate),
|
||||||
ALLOW_SYSCALL(lseek),
|
ALLOW_SYSCALL(lseek),
|
||||||
|
Loading…
Reference in New Issue
Block a user