From 518837e17aa769a6b84fad9ffdd443819f977375 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 23 Nov 2016 08:57:32 +0100 Subject: [PATCH] sys_linux: allow ioctls used with HW timestamping in seccomp filter --- sys_linux.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys_linux.c b/sys_linux.c index c89726d..31b4227 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -51,7 +51,7 @@ #include #include #include -#ifdef FEAT_PHC +#if defined(FEAT_PHC) || defined(HAVE_LINUX_TIMESTAMPING) #include #endif #ifdef FEAT_PPS @@ -60,6 +60,9 @@ #ifdef FEAT_RTC #include #endif +#ifdef HAVE_LINUX_TIMESTAMPING +#include +#endif #endif #include "sys_linux.h" @@ -510,7 +513,7 @@ SYS_Linux_EnableSystemCallFilter(int level) const static unsigned long ioctls[] = { FIONREAD, TCGETS, -#ifdef FEAT_PPS +#if defined(FEAT_PHC) || defined(HAVE_LINUX_TIMESTAMPING) PTP_SYS_OFFSET, #endif #ifdef FEAT_PPS @@ -518,6 +521,9 @@ SYS_Linux_EnableSystemCallFilter(int level) #endif #ifdef FEAT_RTC RTC_RD_TIME, RTC_SET_TIME, RTC_UIE_ON, RTC_UIE_OFF, +#endif +#ifdef HAVE_LINUX_TIMESTAMPING + SIOCETHTOOL, #endif };