Prior to this commit, the script only changed the mode/label if the file
has not existed before. If the script ever managed to touch the file and
then got killed, the file's mode/label would never get properly adjusted
when running the script again.
Change-Id: I707870eea9abb63ccf10e8c54fb3ca984e92196a
if [ ! -e /opt/share/security-config/dummy_file ]
then
touch /opt/share/security-config/dummy_file
- chmod 600 /opt/share/security-config/dummy_file
- chsmack -a "_" /opt/share/security-config/dummy_file
fi
+chmod 600 /opt/share/security-config/dummy_file
+chsmack -a "_" /opt/share/security-config/dummy_file
# start cynara & security-manager
systemctl start security-manager-rules-loader