mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
reduced the number of allowed ioctl() to the ones used.
This commit is contained in:
@@ -88,8 +88,6 @@ int disable_system_calls(struct worker_st *ws)
|
||||
|
||||
/* this we need to get the MTU from
|
||||
* the TUN device */
|
||||
ADD_SYSCALL(ioctl, 1, SCMP_A1(SCMP_CMP_EQ, (int)SIOCGIFDSTADDR));
|
||||
ADD_SYSCALL(ioctl, 1, SCMP_A1(SCMP_CMP_EQ, (int)SIOCGIFADDR));
|
||||
ADD_SYSCALL(ioctl, 1, SCMP_A1(SCMP_CMP_EQ, (int)SIOCGIFMTU));
|
||||
|
||||
ret = seccomp_load(ctx);
|
||||
|
||||
Reference in New Issue
Block a user