enable seccomp filter by default
Add -F 2 to default /etc/sysconfig/chronyd to enable a filter blocking a small number of specific system calls. The filter is incompatible with the mailonchange directive.
This commit is contained in:
parent
c6a8172473
commit
eeffcafda9
@ -138,7 +138,7 @@ install -m 644 -p examples/chrony-wait.service \
|
|||||||
|
|
||||||
cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/chronyd <<EOF
|
cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/chronyd <<EOF
|
||||||
# Command-line options for chronyd
|
# Command-line options for chronyd
|
||||||
OPTIONS=""
|
OPTIONS="%{?with_seccomp:-F 2}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/chrony/{drift,rtc}
|
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/chrony/{drift,rtc}
|
||||||
|
Loading…
Reference in New Issue
Block a user