aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/0ad.profile30
-rw-r--r--etc/disable-programs.inc3
2 files changed, 33 insertions, 0 deletions
diff --git a/etc/0ad.profile b/etc/0ad.profile
new file mode 100644
index 000000000..f8a3ce23d
--- /dev/null
+++ b/etc/0ad.profile
@@ -0,0 +1,30 @@
1# Firejail profile for 0ad.
2noblacklist ~/.config/0ad
3include /etc/firejail/disable-common.inc
4include /etc/firejail/disable-devel.inc
5include /etc/firejail/disable-passwdmgr.inc
6include /etc/firejail/disable-programs.inc
7
8# Call these options
9caps.drop all
10seccomp
11protocol unix,inet,inet6,netlink
12netfilter
13tracelog
14noroot
15
16# Whitelists
17noblacklist ~/.cache/0ad
18mkdir ~/.cache
19mkdir ~/.cache/0ad
20whitelist ~/.cache/0ad
21
22mkdir ~/.config
23mkdir ~/.config/0ad
24whitelist ~/.config/0ad
25
26noblacklist ~/.local/share/0ad
27mkdir ~/.local
28mkdir ~/.local/share
29mkdir ~/.local/share/0ad
30whitelist ~/.local/share/0ad
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc
index 7faf75638..7f18aa16f 100644
--- a/etc/disable-programs.inc
+++ b/etc/disable-programs.inc
@@ -53,6 +53,7 @@ blacklist ${HOME}/.TelegramDesktop
53blacklist ${HOME}/.hedgewars 53blacklist ${HOME}/.hedgewars
54blacklist ${HOME}/.steam 54blacklist ${HOME}/.steam
55blacklist ${HOME}/.config/wesnoth 55blacklist ${HOME}/.config/wesnoth
56blacklist ${HOME}/.config/0ad
56 57
57# Cryptocoins 58# Cryptocoins
58blacklist ${HOME}/.*coin 59blacklist ${HOME}/.*coin
@@ -81,6 +82,7 @@ blacklist ${HOME}/.cache/thunderbird
81blacklist ${HOME}/.cache/icedove 82blacklist ${HOME}/.cache/icedove
82blacklist ${HOME}/.cache/transmission 83blacklist ${HOME}/.cache/transmission
83blacklist ${HOME}/.cache/wesnoth 84blacklist ${HOME}/.cache/wesnoth
85blacklist ${HOME}/.cache/0ad
84 86
85# share 87# share
86blacklist ${HOME}/.local/share/epiphany 88blacklist ${HOME}/.local/share/epiphany
@@ -88,3 +90,4 @@ blacklist ${HOME}/.local/share/mupen64plus
88blacklist ${HOME}/.local/share/spotify 90blacklist ${HOME}/.local/share/spotify
89blacklist ${HOME}/.local/share/steam 91blacklist ${HOME}/.local/share/steam
90blacklist ${HOME}/.local/share/wesnoth 92blacklist ${HOME}/.local/share/wesnoth
93blacklist ${HOME}/.local/share/0ad