diff options
-rw-r--r-- | pcr/firejail/PKGBUILD | 16 | ||||
-rw-r--r-- | pcr/firejail/PKGBUILD.sig | bin | 543 -> 543 bytes | |||
-rw-r--r-- | pcr/firejail/firejail.install | 140 |
3 files changed, 110 insertions, 46 deletions
diff --git a/pcr/firejail/PKGBUILD b/pcr/firejail/PKGBUILD index 23178c74a..4a26494b5 100644 --- a/pcr/firejail/PKGBUILD +++ b/pcr/firejail/PKGBUILD @@ -2,7 +2,7 @@ # Contributor (Arch): ajs124 < aur AT ajs124 DOT de > pkgname=firejail -pkgver=0.9.34 +pkgver=0.9.36 pkgrel=1 pkgdesc="Linux namespaces sandbox program" arch=('i686' 'x86_64' 'armv7h') @@ -14,7 +14,7 @@ source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$p "$pkgname.install") install=("$pkgname.install") validpgpkeys=('CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697') # PKGBUILD Maintainer's key -sha512sums=('456751a987c89b020c7152ab9b3aabd69b573c64daff84ca8d36acd74ebe0d268bc2be879d02ab95842d8afb1b1e47b3917650593c24bf74cb287a821b67df00' +sha512sums=('8b9b7f3dd071825117a45e41c1e33871bf4f7788faf27f322913079a7094e6fa4eb7a94362630664c4b441213c357531a2f9f41bd94ff06c64bc6f8a6ee68fd1' 'SKIP' 'SKIP' '6d855868069dffdb416f31376cc1069d330e792f34970524dc83d67b14416f57cef68955a980fe2ec102590ae91757fb45f45f4d18e5320a385a1bbca2f39192') @@ -32,11 +32,23 @@ prepare() { rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome.profile sed -i 's|install -c -m 0644 etc/google-chrome.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in + rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome-beta.profile + sed -i 's|install -c -m 0644 etc/google-chrome-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in + + rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome-stable.profile + sed -i 's|install -c -m 0644 etc/google-chrome-stable.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in + + rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome-unstable.profile + sed -i 's|install -c -m 0644 etc/google-chrome-unstable.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in + rm ${srcdir}/${pkgname}-${pkgver}/etc/dropbox.profile sed -i 's|install -c -m 0644 etc/dropbox.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in rm ${srcdir}/${pkgname}-${pkgver}/etc/opera.profile sed -i 's|install -c -m 0644 etc/opera.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in + + rm ${srcdir}/${pkgname}-${pkgver}/etc/opera-beta.profile + sed -i 's|install -c -m 0644 etc/opera-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in rm ${srcdir}/${pkgname}-${pkgver}/etc/spotify.profile sed -i 's|install -c -m 0644 etc/spotify.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in diff --git a/pcr/firejail/PKGBUILD.sig b/pcr/firejail/PKGBUILD.sig Binary files differindex 970bf9e32..ff36f6164 100644 --- a/pcr/firejail/PKGBUILD.sig +++ b/pcr/firejail/PKGBUILD.sig diff --git a/pcr/firejail/firejail.install b/pcr/firejail/firejail.install index 208f654a9..ff9f47783 100644 --- a/pcr/firejail/firejail.install +++ b/pcr/firejail/firejail.install @@ -1,74 +1,100 @@ pre_upgrade() { echo "Checking 33 firejail profiles for user modification, backing up as needed..." FilesToCheck=( -'/etc/firejail/audacious.profile' -'/etc/firejail/clementine.profile' -'/etc/firejail/conkeror.profile' -'/etc/firejail/deadbeef.profile' -'/etc/firejail/deluge.profile' -'/etc/firejail/disable-common.inc' -'/etc/firejail/disable-devel.inc' -'/etc/firejail/disable-mgmt.inc' -'/etc/firejail/disable-secret.inc' -'/etc/firejail/empathy.profile' -'/etc/firejail/evince.profile' -'/etc/firejail/fbreader.profile' -'/etc/firejail/filezilla.profile' -'/etc/firejail/firefox.profile' -'/etc/firejail/generic.profile' -'/etc/firejail/gnome-mplayer.profile' -'/etc/firejail/icecat.profile' -'/etc/firejail/icedove.profile' -'/etc/firejail/iceweasel.profile' -'/etc/firejail/login.users' -'/etc/firejail/midori.profile' -'/etc/firejail/pidgin.profile' -'/etc/firejail/qbittorrent.profile' -'/etc/firejail/quassel.profile' -'/etc/firejail/rhythmbox.profile' -'/etc/firejail/server.profile' -'/etc/firejail/thunderbird.profile' -'/etc/firejail/totem.profile' -'/etc/firejail/transmission-gtk.profile' -'/etc/firejail/transmission-qt.profile' -'/etc/firejail/vlc.profile' -'/etc/firejail/wine.profile' -'/etc/firejail/xchat.profile') +/etc/firejail/audacious.profile +/etc/firejail/bitlbee.profile +/etc/firejail/clementine.profile +/etc/firejail/conkeror.profile +/etc/firejail/deadbeef.profile +/etc/firejail/deluge.profile +/etc/firejail/disable-common.inc +/etc/firejail/disable-devel.inc +/etc/firejail/disable-mgmt.inc +/etc/firejail/disable-secret.inc +/etc/firejail/dnscrypt-proxy.profile +/etc/firejail/dropbox.profile +/etc/firejail/empathy.profile +/etc/firejail/evince.profile +/etc/firejail/fbreader.profile +/etc/firejail/filezilla.profile +/etc/firejail/firefox.profile +/etc/firejail/generic.profile +/etc/firejail/gnome-mplayer.profile +/etc/firejail/hexchat.profile +/etc/firejail/icecat.profile +/etc/firejail/icedove.profile +/etc/firejail/iceweasel.profile +/etc/firejail/login.users +/etc/firejail/midori.profile +/etc/firejail/nolocal.net +/etc/firejail/parole.profile +/etc/firejail/pidgin.profile +/etc/firejail/qbittorrent.profile +/etc/firejail/quassel.profile +/etc/firejail/rhythmbox.profile +/etc/firejail/rtorrent.profile +/etc/firejail/server.profile +/etc/firejail/thunderbird.profile +/etc/firejail/totem.profile +/etc/firejail/transmission-gtk.profile +/etc/firejail/transmission-qt.profile +/etc/firejail/unbound.profile +/etc/firejail/vlc.profile +/etc/firejail/webserver.net +/etc/firejail/weechat-curses.profile +/etc/firejail/weechat.profile +/etc/firejail/whitelist-common.inc +/etc/firejail/wine.profile +/etc/firejail/xchat.profile +) OriginalFileHashes=( '475365b623b1f879005476ca6ea5d6e6c17f1cfaeb81bade5d99256e86eb52592abb07fefd7b25dd02ac11fcc83f9b31ba7e5bb0124225b19f44d559d5aceb9e' +'272e06bda895dc0583f8ed487f3e204c581de331632ffbc48117b46d00d191cb3ab236ca9aa4602314b8f258c503c514443eb467ba94b489a22589b75d9b25ba' '7c57c690f0e38b2095cff19d7460c4f833efa979a303d579d16ee306184ff3c9ea94b4e2ec926958354c42cb5c47ee53674d81ae6f8adcd1279c9e905c622d1f' '6bf30e18a4e6cf02fcb3021378a7e8fe7edc1afe4b2012fbc567003d2f2446f7c0a4fc15b4c2a04c038d65393a9add1fc1fbcdecd7011c8fc496e6af5eee155e' 'd1e95c53bc19da0e644b4ebe5bd20fa5e9cc7862f2e07110d7ce4f9a45ddb679b38edfb9ff26c1ad6b0e49d359d15334995475004b2c5a1e1aeac40278bb4b2d' -'953009d2f096c909fbb597d61981ab620d8214e538da57f172773fedaf1b1dba959fcd21104da1a4bfb2723d366a8e35699ba7166614888d8c33c757c23dc460' -'74a3cdca9da6ee82467b7c7e077d7aabd3440b4bef54cac8c9548724468e22b7cec11c4a50360d7e6db18a53f99be5bb39ca023722a4e266039ae491b68a9793' -'08a24b721f29a21aff677152079607b95cb523cb379a04c909c80bacd5cad12ebc1f7f8ce40bf84598d6d7df5cbe1638789534259dcac27ca956546365a2e18b' -'c36cb56d0ca440307fea86ed41d697603f48a0273dd313aad3ddc5886a31f43425c24546cda6227b55d11ab2f46352b3f2591239d08694f2442e4b30525ac3b9' -'8a07bb966834e91d8dacfb29399655a3e5e48b752fe04b30ba79125b60f82b40a25cf8047b2e7a2882d1c67494f5b42a0243377ae55ee7dbb66fb2dfe8b4d1e8' +'f6b7314406f0f72f5de616b1cfbe00455dc30d3524b7b6e8b247feb6b6391cf36c822ddf299db0184bc5c66ffccff58e996399de00a195e2ef0a60ea88cf26c2' +'5b8192bb3617e2f513fce21963cbb329cfc54ba855be6faee98943f632ee579191c14309018600460d128c7c6331a1cbc8b1d5ca9aaaad1c565bb264d479a70e' +'69a3deb638a2e9d418468e28c23553255f294010a9c1418c1adbc3e1397eea9f34b86d786efc78955965fb39bb5586ca2d727dcc6e0ac8e47994470ad8d3c984' +'14efe7280fb77093a22999739ce323e90fccdc2a43c6b1ead30d3b176decd7ca7f6ed79382c1b63e7b8a8a88f65e03198a40339a26dd6a28e68878c7afa97c66' +'b0e6b65d9e2c1be90989f0cafbded7c7ebc7a50fd22dccca2ecd16e45547e076ea4ce010e2e7156dce8796d0af6fd5cdf9067f51b9cc91ebd4c9f300f05dcc40' +'6aba29b3b68b7f96e90c28a4e31e9a4b2d00f07a9f49cb792da29531a56acb57b6d8ffade6661639ffaf0e844094647db5c3ecfcb1317095ab4f1655d511e3c6' +'43c2ed16340847121ef2adc91fcf836d46295918ffaa486eb4f3b007fb833007da1884b656bd7b13e0cad5ce6d2df16fe830c3ed7d41615800b4dbf62fde332f' '1aed5fd7a711f68e1d1522be8caee86c8f0df2799b3d5e59abea96fa4c3424d5df393b549c15eff3ffe849a9ba3a2a96f1eb41ea9a4ef003a2344df15e107f8f' '93f40b47b08eee43e02db3915ac8e1275114f754dc6b24707ad07d2007c4c9abd8a09984e4ce78fda25100908f863a4cba5d6256d227816af717510145366ed5' 'c4810f982f370f480f116eefe33bccd5f91a60f615a809b8c5e66db6c6e557f42cea07e66ddd41badad39a4e0a39cafc4fee82ad8aa61fe4fb6c6b2a3d812491' 'd635adcc12bdc92e9fae2ab7084c4506aa4f4687881478820f2c979de7d822d7ccb45bb6eee19923e498c163ceb7bf62e73d5ab362aa9c96b5d1df94e57c2124' -'fb475c80095f4e5c2fda5d540af4c0499fb07fa080f0c76634458d611de202249789f7d5586ab8b7dede9c0fd8c8fe0c9dc26c3b7f537d696ff0c2f13230b188' +'1317fbf93f5c9e37c1706e8619d2e40fbe62a3b9772476fb5f65495a48d042139fa05e8691fb6d906bf6bdacd4a7e75c58fdfdc6f58ab05c2bafbf610649acc3' 'fb6c319412a8f5c45361354508d08a020df1798cb00fa3295be0df9eebd0dd7efe59189106402a6b8761afd11dff8bc438f7ac1c7de981a5bcebd0027e428ccc' '3b3e54a9fc1e60da4082660b2f179a7667f79da1094325eb6979bf08a3f5a7dc2e54c28041363e7555f5b2eb4590810c20ec9e5914a6c1c4323a86727a01f8c9' +'f0127da75a98a89ef3236310efc1afbf003e5bab30ed3f5417f157e9f29614c20da093f4805f54d967ad20079710caaf86fd3b55b33d4dfa928ae8976085322a' '81db63b03b1f950b1e7810fab38ce4fe5776f11e3036848da6298d9002b5c4683028d4fdd630db118d428fd91e5118872b5b2ccff9c82d02a966765efdb9dc17' '9a8c4d7ce893340da2d9cc8237cecf8bca2865e5552747c480a1f803072960b7aa571b2693600076ea8800b86e1d0945d8a535fffcdbe9569b3820a477b155d2' '8ded98eec8c11af8defef583227ea833beca534e5f2be48b52ec75152afddf14d78ba47442237e84eda8bb1b8361b1afecd63576f8ef6b18d50fb8c6559e8638' '672fa8b25ed28a07efb41fad6415c9fa96ce4bf4f4a1a6412595afb309ef6c1e67033ee256f997c32e9abe25bd6a100160ff12f2235c9be289c223547d03ca95' '92d90375a560f3d6c94b3cf6c2d0de06d8e76d8d40eb80ebaf85de844b323c0ec283bc9bca753b2bf301587dda5237883ccd6062f9d5e3c2e8dc7dc33476ce6a' +'0674dd401dbb0c205c94ad45ec1e92408122a6ee736e1b02fc19c75c1e30e4b278cbbbc9fef9a0b41de7d068e7eaedca231880315b85d11e9d36345d61b75d68' +'e3fabdd8bfba675b0ac4be8d9005e1bdc8d51d46178b71b6c33d9b0120eef7bde0b6750b5aae51825d3ce0e7d7da5cfbcf0f2b48db9e4f821ad182e0f29a2aad' '6a2869827fb38740ef81b93c88880f55a3fb186a82ff6e0dc4142d1fd620d3eb53f8fb36e95482afea6b7865a9cf9d2a7dea172a90792ca37a24f0af6ed39b69' 'e18d294d10a103f1da5d27a12ee867c84920dcd081f7c4daa4e46f6722962a993c3c62295daaed4c19b928d336dda56d4f2ae75dd1c3d5c5f35f878ce76060f0' '2278e3d1ec06e20c2aa7bcced46a5c01bf55f94d6e286f6433bf44177c912709e8d5e0a4c553b2a3af67dfdca6061e95eadfb648f4c606f0bd819b5fef1af03f' 'b8d8a9620a28b67752788c2af2fc0a63f479ea7424dadd9047a000f7782ae4e268ab42861c4f26707236df0c061f1e768f7d6fb580e027af10b9679a1bfb8eec' +'8f184d406828be02ce3c091cb2c0c9fb71526ce9907bd6b1685c8afe7d70d1627055c5702d2ffd2e3b41d084b0aefe87ad763bf8636ff518b2db029d45be4137' '0fa8393eaa3c0e5514e44e42ed9f8085c2aa8ddfa799e4cdd19d1004c81692dc1baa8963aa75dfbb7e268c80636711a90110f365e2f3d0769d7fdf0b6aaac65e' -'9a3a9f1c59810b82c3a331d3e360f77934712126b70184df5ba2aec52adb28f1ca7d6e5c61ffc6950435468cfb5d529b896462897497341c435068febad472b7' +'a1074b8508b16a256cc3ffc561cc4ffa8661478865c9efa86de712ee7d890c2bacad05fa2fe7913a6c7f3e04ace90b2a29724938b28cb246626d15175b3e56ca' '983f048d3627fbd22be0694f5a4dde1ff874e60206563addb0e2c52506229c36438e48ff8475fb27a388b33f3f93fc52a440e1b604e00610c799c8499cb55593' -'06c5591cd4e167f71e72f061ed1efaea0ab138acb562c6f5a7fb9340239e2465d22fd5ac992684444707f14c051d026cabd81f4408117d2d2f22bc089dcbfcb4' -'400bfb6f3ee38c73d584cb2e66e37464b6ce75f50a1edaec688405e46e943a62161ae63ba9e0a534887b4ce9ce25c95ca222d2f24111d9f40f455f3412694280' +'1683412211fb3260564f1e1ab231173c811cccd51ed5052b6bbac1b9575bbbe95bebd6f4536fe320449118e80c8dd9f138e6e45704f6629bf581bedf8daf7585' +'2fa037409a66280e5dd82c562b7f1b7c4048575d6f73bdde5fb62fb5c140ebcb7cb89945cfce6b0b13325426dcfaf52c1eb4805def47dd4a920ea0f8a9739cb9' +'16ac112b32941e7b0a6488e69790c286b4ed539b5c8c1b7c0ba76713b31472a260d4845a718738751c8e05a0599c57c9a882afcc7117f48e7d7d4aaaf9eb2a2f' 'c84cc10ee40620846fc0e852e78277afcd96251857f955973036b416f57e6c2c72a8631e1377d4bcea6409129ba909895f1437a81b71a93523463686fc0daba8' -'597e7e5779766a4baf606c78218b9c0f9cd87a80ff9e00d5cb7506bc75a2ad79b0c6a65c12362c14afe113a7e6cda7f9808c809eaa601badc61a7aceb54ce16f' -'70eaadc12a480cce08ba46a393b3c158821eacc445806714e128f99f50a92aaae769e7cee73f4bf3451846fce0395936c71bcd110929a1ada8bd06f579e67ff6') +'a889749dce2d9a7f624327780696a8444112b55c22d5a2506aaa5ee52f64bd028f6cbb7f6c9b39123565e7257935acaebf8a9d98460b1d25320cfd729c493450' +'28bcf7a38c8ad4e3b69e5ea6ae2b8d6058094af9ff214c918f46ad8ff1226f1b4bf3e4adaa9cd13241e6fe05559cf4d8029cd0c06f670b616465b5edb94d9a0b' +'d8bea2514a2733509081f0544dbb9ae6b65e401596a95cb5e32907517d5d1e734219e74b4ad158c730a89230d29cf77a3dff2aa0165a0e97e91bf592575d19ca' +'f966976284f051555dcb416f97189771b80f613d54165699be4443d1052a282b32d3a7c526c4523a719764d8c7dfa87fa0d9228c3c906a0c0cd68e9a2675c2e0' +'3eb64fda1003bcea210e021fc3aedcbf337d927edbc4f800d73d6d9ae0ac161d896973c3704070bf017adc8822e17126423a22da9b1c393278771fd07d97b734' +'728019aaae0eeb1920b290ab84da8b755ec160822e36efc13722a510cc3ebd67dd7c0251e0c89aaf31eb411fc82834ae08ba763365949e6ea0edc5b2d9ed53da' +) ## Uses above arrays to check if file's original hash matches, if not the file was edited, so we save a backup and notify the user. @@ -138,6 +164,32 @@ OriginalFileHashes=( [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[32]} | awk '{print $1}')" = ${OriginalFileHashes[32]} ]] || { cat "${FilesToCheck[32]}" > "${FilesToCheck[32]}.pacsave" ; echo "Backup saved: ${FilesToCheck[32]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[33]} | awk '{print $1}')" = ${OriginalFileHashes[33]} ]] || { cat "${FilesToCheck[33]}" > "${FilesToCheck[33]}.pacsave" ; echo "Backup saved: ${FilesToCheck[33]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[34]} | awk '{print $1}')" = ${OriginalFileHashes[34]} ]] || { cat "${FilesToCheck[34]}" > "${FilesToCheck[34]}.pacsave" ; echo "Backup saved: ${FilesToCheck[34]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[35]} | awk '{print $1}')" = ${OriginalFileHashes[35]} ]] || { cat "${FilesToCheck[35]}" > "${FilesToCheck[35]}.pacsave" ; echo "Backup saved: ${FilesToCheck[35]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[36]} | awk '{print $1}')" = ${OriginalFileHashes[36]} ]] || { cat "${FilesToCheck[36]}" > "${FilesToCheck[36]}.pacsave" ; echo "Backup saved: ${FilesToCheck[36]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[37]} | awk '{print $1}')" = ${OriginalFileHashes[37]} ]] || { cat "${FilesToCheck[37]}" > "${FilesToCheck[37]}.pacsave" ; echo "Backup saved: ${FilesToCheck[37]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[38]} | awk '{print $1}')" = ${OriginalFileHashes[38]} ]] || { cat "${FilesToCheck[38]}" > "${FilesToCheck[38]}.pacsave" ; echo "Backup saved: ${FilesToCheck[38]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[39]} | awk '{print $1}')" = ${OriginalFileHashes[39]} ]] || { cat "${FilesToCheck[39]}" > "${FilesToCheck[39]}.pacsave" ; echo "Backup saved: ${FilesToCheck[39]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[40]} | awk '{print $1}')" = ${OriginalFileHashes[40]} ]] || { cat "${FilesToCheck[40]}" > "${FilesToCheck[40]}.pacsave" ; echo "Backup saved: ${FilesToCheck[40]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[41]} | awk '{print $1}')" = ${OriginalFileHashes[41} ]] || { cat "${FilesToCheck[41]}" > "${FilesToCheck[41]}.pacsave" ; echo "Backup saved: ${FilesToCheck[41]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[42]} | awk '{print $1}')" = ${OriginalFileHashes[42]} ]] || { cat "${FilesToCheck[42]}" > "${FilesToCheck[42]}.pacsave" ; echo "Backup saved: ${FilesToCheck[42]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[43]} | awk '{print $1}')" = ${OriginalFileHashes[43]} ]] || { cat "${FilesToCheck[43]}" > "${FilesToCheck[43]}.pacsave" ; echo "Backup saved: ${FilesToCheck[43]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[44]} | awk '{print $1}')" = ${OriginalFileHashes[44]} ]] || { cat "${FilesToCheck[44]}" > "${FilesToCheck[44]}.pacsave" ; echo "Backup saved: ${FilesToCheck[44]}.pacsave"; } + +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[45]} | awk '{print $1}')" = ${OriginalFileHashes[45]} ]] || { cat "${FilesToCheck[45 ]}" > "${FilesToCheck[45]}.pacsave" ; echo "Backup saved: ${FilesToCheck[45]}.pacsave"; } + echo "Done!" }
\ No newline at end of file |