mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:25:07 -05:00
sys_linux: allow some *time64 syscalls in seccomp filter
These are needed for 32-bit architectures with new system calls using 64-bit time_t.
This commit is contained in:
committed by
Miroslav Lichvar
parent
526974366f
commit
7a7295992f
18
sys_linux.c
18
sys_linux.c
@@ -480,7 +480,13 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_SystemCallContext context)
|
||||
/* Clock */
|
||||
SCMP_SYS(adjtimex),
|
||||
SCMP_SYS(clock_adjtime),
|
||||
#ifdef __NR_clock_adjtime64
|
||||
SCMP_SYS(clock_adjtime64),
|
||||
#endif
|
||||
SCMP_SYS(clock_gettime),
|
||||
#ifdef __NR_clock_gettime64
|
||||
SCMP_SYS(clock_gettime64),
|
||||
#endif
|
||||
SCMP_SYS(gettimeofday),
|
||||
SCMP_SYS(settimeofday),
|
||||
SCMP_SYS(time),
|
||||
@@ -544,6 +550,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_SystemCallContext context)
|
||||
SCMP_SYS(recv),
|
||||
SCMP_SYS(recvfrom),
|
||||
SCMP_SYS(recvmmsg),
|
||||
#ifdef __NR_recvmmsg_time64
|
||||
SCMP_SYS(recvmmsg_time64),
|
||||
#endif
|
||||
SCMP_SYS(recvmsg),
|
||||
SCMP_SYS(send),
|
||||
SCMP_SYS(sendmmsg),
|
||||
@@ -562,9 +571,18 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_SystemCallContext context)
|
||||
SCMP_SYS(pipe2),
|
||||
SCMP_SYS(poll),
|
||||
SCMP_SYS(ppoll),
|
||||
#ifdef __NR_ppoll_time64
|
||||
SCMP_SYS(ppoll_time64),
|
||||
#endif
|
||||
SCMP_SYS(pselect6),
|
||||
#ifdef __NR_pselect6_time64
|
||||
SCMP_SYS(pselect6_time64),
|
||||
#endif
|
||||
SCMP_SYS(read),
|
||||
SCMP_SYS(futex),
|
||||
#ifdef __NR_futex_time64
|
||||
SCMP_SYS(futex_time64),
|
||||
#endif
|
||||
SCMP_SYS(select),
|
||||
SCMP_SYS(set_robust_list),
|
||||
SCMP_SYS(write),
|
||||
|
||||
Reference in New Issue
Block a user