From 76b6e0c2916bc036f5ee4cfb967d01626ad153cd Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Wed, 23 Nov 2016 23:47:35 -0500 Subject: typo fixes to iceweasel hardened filename --- .../iceweasel-hardened-preferences/PKGBUILD | 4 ++-- .../icewease-hardened | 23 ---------------------- .../iceweasel-hardened.sh | 23 ++++++++++++++++++++++ 3 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 nonprism-testing/iceweasel-hardened-preferences/icewease-hardened create mode 100644 nonprism-testing/iceweasel-hardened-preferences/iceweasel-hardened.sh diff --git a/nonprism-testing/iceweasel-hardened-preferences/PKGBUILD b/nonprism-testing/iceweasel-hardened-preferences/PKGBUILD index c2abbf75a..b37e5231e 100644 --- a/nonprism-testing/iceweasel-hardened-preferences/PKGBUILD +++ b/nonprism-testing/iceweasel-hardened-preferences/PKGBUILD @@ -11,7 +11,7 @@ replaces=('iceweasel-hardened') depends=('iceweasel-noscript') url="https://wiki.parabola.nu/${pkgname%-*}" source=('firefox-branding.js' -'iceweasel-hardened' +'iceweasel-hardened.sh' 'iceweasel-branding.js') sha512sums=('cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e' '0e65aec4e7ae1f3ab792522b0b9cdb9b4c465553907639af38bf2cacd4745010d1864a17467575421c35f7356c2b506a34abbfb0b36a38ed00364bc1e62f0948' @@ -23,5 +23,5 @@ whirlpoolsums=('19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a7 package() { install -Dm644 iceweasel-branding.js "$pkgdir"/usr/lib/iceweasel/browser/defaults/preferences/iceweasel-branding.js install -Dm766 firefox-branding.js "$pkgdir"/usr/lib/iceweasel/browser/defaults/preferences/firefox-branding.js - install -Dm644 iceweasel-hardened "$pkgdir"/usr/bin/iceweasel-hardened + install -Dm644 iceweasel-hardened.sh "$pkgdir"/usr/bin/iceweasel-hardened } diff --git a/nonprism-testing/iceweasel-hardened-preferences/icewease-hardened b/nonprism-testing/iceweasel-hardened-preferences/icewease-hardened deleted file mode 100644 index 18602dfc4..000000000 --- a/nonprism-testing/iceweasel-hardened-preferences/icewease-hardened +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -############################################## -# IceWeasel-Hardened Jail and Cleaner Script # -############################################## -echo "Closing any other instances of IceWeasel to avoid crashes..." -pkill iceweasel -wait -echo "Copying Hardened Prefs..." -cp /usr/lib/iceweasel/browser/defaults/preferences/iceweasel-branding.js /usr/lib/iceweasel/browser/defaults/preferences/firefox-branding.js -wait -echo "Waking the IceWeasel..." - -# Trap cleaner function for IceWeasel exit cleaning -function finish { -echo "Removing hardened preferences..." -echo "" > /usr/lib/iceweasel/browser/defaults/preferences/firefox-branding.js - } - -## Firejail IceWeasel startup -firejail --seccomp --noroot --nogroups --caps.drop=all --private-etc=/etc/user.js --private-bin=bash,sed,ls,cat,iceweasel --private-tmp --private-home=~/.mozilla --whitelist=~/Downloads /usr/bin/iceweasel --private-window - -## Exiting IceWeasel triggers the trap -trap finish EXIT \ No newline at end of file diff --git a/nonprism-testing/iceweasel-hardened-preferences/iceweasel-hardened.sh b/nonprism-testing/iceweasel-hardened-preferences/iceweasel-hardened.sh new file mode 100644 index 000000000..18602dfc4 --- /dev/null +++ b/nonprism-testing/iceweasel-hardened-preferences/iceweasel-hardened.sh @@ -0,0 +1,23 @@ +#!/bin/sh +############################################## +# IceWeasel-Hardened Jail and Cleaner Script # +############################################## +echo "Closing any other instances of IceWeasel to avoid crashes..." +pkill iceweasel +wait +echo "Copying Hardened Prefs..." +cp /usr/lib/iceweasel/browser/defaults/preferences/iceweasel-branding.js /usr/lib/iceweasel/browser/defaults/preferences/firefox-branding.js +wait +echo "Waking the IceWeasel..." + +# Trap cleaner function for IceWeasel exit cleaning +function finish { +echo "Removing hardened preferences..." +echo "" > /usr/lib/iceweasel/browser/defaults/preferences/firefox-branding.js + } + +## Firejail IceWeasel startup +firejail --seccomp --noroot --nogroups --caps.drop=all --private-etc=/etc/user.js --private-bin=bash,sed,ls,cat,iceweasel --private-tmp --private-home=~/.mozilla --whitelist=~/Downloads /usr/bin/iceweasel --private-window + +## Exiting IceWeasel triggers the trap +trap finish EXIT \ No newline at end of file -- cgit v1.2.3