mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:35:06 -05:00
sys_linux: allow ioctls used with HW timestamping in seccomp filter
This commit is contained in:
10
sys_linux.c
10
sys_linux.c
@@ -51,7 +51,7 @@
|
|||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h>
|
||||||
#include <seccomp.h>
|
#include <seccomp.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#ifdef FEAT_PHC
|
#if defined(FEAT_PHC) || defined(HAVE_LINUX_TIMESTAMPING)
|
||||||
#include <linux/ptp_clock.h>
|
#include <linux/ptp_clock.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_PPS
|
#ifdef FEAT_PPS
|
||||||
@@ -60,6 +60,9 @@
|
|||||||
#ifdef FEAT_RTC
|
#ifdef FEAT_RTC
|
||||||
#include <linux/rtc.h>
|
#include <linux/rtc.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_LINUX_TIMESTAMPING
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "sys_linux.h"
|
#include "sys_linux.h"
|
||||||
@@ -510,7 +513,7 @@ SYS_Linux_EnableSystemCallFilter(int level)
|
|||||||
|
|
||||||
const static unsigned long ioctls[] = {
|
const static unsigned long ioctls[] = {
|
||||||
FIONREAD, TCGETS,
|
FIONREAD, TCGETS,
|
||||||
#ifdef FEAT_PPS
|
#if defined(FEAT_PHC) || defined(HAVE_LINUX_TIMESTAMPING)
|
||||||
PTP_SYS_OFFSET,
|
PTP_SYS_OFFSET,
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_PPS
|
#ifdef FEAT_PPS
|
||||||
@@ -518,6 +521,9 @@ SYS_Linux_EnableSystemCallFilter(int level)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_RTC
|
#ifdef FEAT_RTC
|
||||||
RTC_RD_TIME, RTC_SET_TIME, RTC_UIE_ON, RTC_UIE_OFF,
|
RTC_RD_TIME, RTC_SET_TIME, RTC_UIE_ON, RTC_UIE_OFF,
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_LINUX_TIMESTAMPING
|
||||||
|
SIOCETHTOOL,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user