set selinux context in chronyd-restricted service (#2169949)

This commit is contained in:
Miroslav Lichvar 2023-06-21 11:03:16 +02:00
parent cf4057bdec
commit dd472d8c34

View File

@ -85,6 +85,10 @@ sed -e 's|^\(pool \)\(pool.ntp.org\)|\12.%{vendorzone}\2|' \
touch -r examples/chrony.conf.example2 chrony.conf
# set selinux context in chronyd-restricted service
sed -i '/^ExecStart/a SELinuxContext=system_u:system_r:chronyd_restricted_t:s0' \
examples/chronyd-restricted.service
# regenerate the file from getdate.y
rm -f getdate.c