mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 09:05:07 -05:00
sys_linux: allow setting IP_FREEBIND option in seccomp filter
This is needed when chronyd is started with no allow directive, but the NTP server socket is opened by the allow command later.
This commit is contained in:
@@ -478,7 +478,7 @@ SYS_Linux_EnableSystemCallFilter(int level)
|
|||||||
};
|
};
|
||||||
|
|
||||||
const static int socket_options[][2] = {
|
const static int socket_options[][2] = {
|
||||||
{ SOL_IP, IP_PKTINFO },
|
{ SOL_IP, IP_PKTINFO }, { SOL_IP, IP_FREEBIND },
|
||||||
#ifdef FEAT_IPV6
|
#ifdef FEAT_IPV6
|
||||||
{ SOL_IPV6, IPV6_V6ONLY }, { SOL_IPV6, IPV6_RECVPKTINFO },
|
{ SOL_IPV6, IPV6_V6ONLY }, { SOL_IPV6, IPV6_RECVPKTINFO },
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user