make the firejail blacklist configurable

This commit is contained in:
Pig Monkey 2016-11-07 19:18:26 -08:00
parent 163baf8f34
commit ac7bfb15be
4 changed files with 25 additions and 1 deletions

View file

@ -96,6 +96,13 @@ script looks for a profile with the same name in `~/.config/firejail`. If one
is not found, it will create a profile that simply includes the system profile,
as in the third example above. It will not modify any existing user profiles.
### Blacklisting
The `firejail.blacklist` variable is used to generate a list of blacklisted
files and directories at `/usr/local/etc/firejail/disable-more.inc`. This file
is included in most of the provided security profiles, causing those locations
to be inaccessible to jailed programs.
## MAC Spoofing
By default, the MAC address of all network interfaces is spoofed at boot,

View file

@ -121,3 +121,16 @@ nameservers:
- 74.82.42.42 # Hurricane Electric
bluetooth: False
firejail:
blacklist:
- ~/.calendars
- ~/.config/vdirsyncer
- ~/.contacts
- ~/.keys
- ~/.mbsyncrc
- ~/.offlineimap
- ~/.offlineimaprc
- ~/.password-store
- ~/.vdirsyncer
- ~/library/ledger

View file

@ -12,7 +12,7 @@
file: path=/usr/local/etc/firejail state=directory
- name: Push firejail blacklist include
copy: src=disable-more.inc dest=/usr/local/etc/firejail/disable-more.inc
template: src=disable-more.inc.j2 dest=/usr/local/etc/firejail/disable-more.inc
tags:
- firejail

View file

@ -0,0 +1,4 @@
# {{ ansible_managed }}
{% for file in firejail.blacklist %}
blacklist {{ file }}
{% endfor %}