Skip to content
Permalink
Browse files Browse the repository at this point in the history
Explicitly set permissions on new keylime.conf files installed
Signed-off-by: Michael Peters <mpeters@redhat.com>
  • Loading branch information
mpeters committed Jan 20, 2022
1 parent c58b19b commit 883085d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions installer.sh
Expand Up @@ -531,10 +531,12 @@ if [[ -f "/etc/keylime.conf" ]] ; then
if [[ $(diff -N "/etc/keylime.conf" "keylime.conf") ]] ; then
echo "Modified keylime.conf found in /etc/, creating /etc/keylime.conf.new instead"
cp keylime.conf /etc/keylime.conf.new
chmod 600 /etc/keylime.conf.new
fi
else
echo "Installing keylime.conf to /etc/"
cp -n keylime.conf /etc/
chmod 600 /etc/keylime.conf
fi

echo
Expand Down

0 comments on commit 883085d

Please sign in to comment.