'seccomp_init(SCMP_ACT_KILL);'
then
add_def FEAT_SCFILTER
- # NAME2IPADDRESS shouldn't be enabled with other operations as the helper
- # process works on one request at the time and the async resolver could
- # block the main thread
- priv_ops="NAME2IPADDRESS RELOADDNS"
+ if [ $feat_ntp = "1" ]; then
+ # NAME2IPADDRESS shouldn't be enabled together with a privops operation
+ # used by the main thread as the helper process works on one request at
+ # a time and the async resolver would block the main thread
+ priv_ops="NAME2IPADDRESS RELOADDNS"
+ fi
EXTRA_LIBS="$EXTRA_LIBS -lseccomp"
fi
"--disable-rtc" \
"--disable-sechash" \
"--disable-cmdmon" \
+ "--disable-cmdmon --enable-scfilter" \
"--disable-ntp" \
+ "--disable-ntp --enable-scfilter" \
"--disable-nts" \
"--disable-refclock" \
"--disable-timestamping" \
"--disable-timestamping --disable-ntp" \
"--disable-cmdmon --disable-ntp" \
+ "--disable-cmdmon --disable-ntp --enable-scfilter" \
"--disable-cmdmon --disable-refclock" \
"--disable-cmdmon --disable-ntp --disable-refclock"
do