jail all the things

This commit is contained in:
Pig Monkey 2015-11-29 16:05:37 -08:00
parent 19e52cb5c1
commit 5940679e01
7 changed files with 65 additions and 0 deletions

View file

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

11
roles/browsers/files/firefox.sh Executable file
View file

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

View file

@ -8,9 +8,19 @@
- name: Install Firefox
pacman: name=firefox state=present
- name: Jail Firefox
copy: src=firefox.sh dest=/usr/local/bin/firefox mode=0755
tags:
- firejail
- name: Install Chromium
pacman: name=chromium state=present
- name: Jail Chromium
copy: src=chromium.sh dest=/usr/local/bin/chromium mode=0755
tags:
- firejail
- name: Download Chromium Pepper Flash
command: cower -dq chromium-pepper-flash
chdir=/home/{{ user.name }}/{{ aur.dir }}

11
roles/chat/files/weechat.sh Executable file
View file

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

View file

@ -4,6 +4,12 @@
tags:
- weechat
- name: Jail weechat
copy: src=weechat.sh dest=/usr/local/bin/weechat mode=0755
tags:
- weechat
- firejail
- name: Install dunst
pacman: name=dunst state=present
tags:

View file

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

View file

@ -1,3 +1,8 @@
---
- name: Install rtorrent
pacman: name=rtorrent state=present
- name: Jail rtorrent
copy: src=rtorrent.sh dest=/usr/local/bin/rtorrent mode=0755
tags:
- firejail