mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
use firejail 0.9.38 symlink invocation
https://l3net.wordpress.com/2016/02/04/firejail-0-9-38-release-announcement/ Existing users will need to remove the old wrapper scripts first # rm /usr/local/bin{chromium,firefox,weechat,rtorrent}
This commit is contained in:
parent
55f2e67694
commit
009998dbb6
8 changed files with 12 additions and 48 deletions
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
FIREJAIL=""
|
||||
|
||||
hash firejail 2> /dev/null
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
FIREJAIL=firejail
|
||||
fi
|
||||
|
||||
$FIREJAIL /usr/bin/chromium "$@"
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
FIREJAIL=""
|
||||
|
||||
hash firejail 2> /dev/null
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
FIREJAIL=firejail
|
||||
fi
|
||||
|
||||
$FIREJAIL /usr/bin/firefox "$@"
|
||||
|
|
@ -5,7 +5,9 @@
|
|||
- chromium
|
||||
|
||||
- name: Jail Chromium
|
||||
copy: src=chromium.sh dest=/usr/local/bin/chromium mode=0755
|
||||
file: src=/usr/bin/firejail
|
||||
dest=/usr/local/bin/chromium
|
||||
state=link
|
||||
tags:
|
||||
- chromium
|
||||
- firejail
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@
|
|||
- firefox
|
||||
|
||||
- name: Jail Firefox
|
||||
copy: src=firefox.sh dest=/usr/local/bin/firefox mode=0755
|
||||
file: src=/usr/bin/firejail
|
||||
dest=/usr/local/bin/firefox
|
||||
state=link
|
||||
tags:
|
||||
- firefox
|
||||
- firejail
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
FIREJAIL=""
|
||||
|
||||
hash firejail 2> /dev/null
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
FIREJAIL=firejail
|
||||
fi
|
||||
|
||||
$FIREJAIL /usr/bin/weechat "$@"
|
||||
|
|
@ -10,7 +10,9 @@
|
|||
- weechat
|
||||
|
||||
- name: Jail weechat
|
||||
copy: src=weechat.sh dest=/usr/local/bin/weechat mode=0755
|
||||
file: src=/usr/bin/firejail
|
||||
dest=/usr/local/bin/weechat
|
||||
state=link
|
||||
tags:
|
||||
- weechat
|
||||
- firejail
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
FIREJAIL=""
|
||||
|
||||
hash firejail 2> /dev/null
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
FIREJAIL=firejail
|
||||
fi
|
||||
|
||||
$FIREJAIL /usr/bin/rtorrent "$@"
|
||||
|
|
@ -3,6 +3,8 @@
|
|||
pacman: name=rtorrent state=present
|
||||
|
||||
- name: Jail rtorrent
|
||||
copy: src=rtorrent.sh dest=/usr/local/bin/rtorrent mode=0755
|
||||
file: src=/usr/bin/firejail
|
||||
dest=/usr/local/bin/rtorrent
|
||||
state=link
|
||||
tags:
|
||||
- firejail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue