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:
Pig Monkey 2016-02-05 18:04:53 -08:00
parent 55f2e67694
commit 009998dbb6
8 changed files with 12 additions and 48 deletions

View file

@ -1,11 +0,0 @@
#!/bin/sh
FIREJAIL=""
hash firejail 2> /dev/null
if [ $? -eq 0 ]; then
FIREJAIL=firejail
fi
$FIREJAIL /usr/bin/chromium "$@"

View file

@ -1,11 +0,0 @@
#!/bin/sh
FIREJAIL=""
hash firejail 2> /dev/null
if [ $? -eq 0 ]; then
FIREJAIL=firejail
fi
$FIREJAIL /usr/bin/firefox "$@"

View file

@ -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

View file

@ -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

View file

@ -1,11 +0,0 @@
#!/bin/sh
FIREJAIL=""
hash firejail 2> /dev/null
if [ $? -eq 0 ]; then
FIREJAIL=firejail
fi
$FIREJAIL /usr/bin/weechat "$@"

View file

@ -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

View file

@ -1,11 +0,0 @@
#!/bin/sh
FIREJAIL=""
hash firejail 2> /dev/null
if [ $? -eq 0 ]; then
FIREJAIL=firejail
fi
$FIREJAIL /usr/bin/rtorrent "$@"

View file

@ -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