Skip to content

Commit

Permalink
Add quotes to prevent globbing in environment variables used for hard…
Browse files Browse the repository at this point in the history
…ened firefox user.js
  • Loading branch information
samuelerickson977 committed Jul 13, 2023
1 parent 28288e6 commit 971db8e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions harden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ echo "session optional pam_apparmor.so order=user,group,default" | sudo tee
sudo apparmor_parser -r -T -W /etc/apparmor.d/pam_binaries /etc/apparmor.d/pam_roles

# Hardened Firefox user.js
if [ $USER != "root" ]; then
wget -O $HOME/user.js https://raw.githubusercontent.com/arkenfox/user.js/master/user.js
chown $USER:$USER $HOME/user.js
cp $HOME/user.js $HOME/.mozilla/firefox/*.default
mv $HOME/user.js $HOME/.mozilla/firefox/*.default-release
fi
wget -O "$HOME"/user.js https://raw.githubusercontent.com/arkenfox/user.js/master/user.js
chown "$USER":"$USER" "$HOME"/user.js
cp "$HOME"/user.js "$HOME"/.mozilla/firefox/*.default
mv "$HOME"/user.js "$HOME"/.mozilla/firefox/*.default-release


# Entropy
Expand Down

0 comments on commit 971db8e

Please sign in to comment.