diff options
author | Fred-Barclay <Fred-Barclay@users.noreply.github.com> | 2019-02-16 10:34:54 -0600 |
---|---|---|
committer | Fred-Barclay <Fred-Barclay@users.noreply.github.com> | 2019-02-16 10:34:54 -0600 |
commit | 6ea7c5bc4fc6e44c475ea59fb76b79fa150407c2 (patch) | |
tree | 69c136de5dd79c05c9704c8be381bd89c5418f5d /etc | |
parent | Merge pull request #2402 from glitsj16/snap (diff) | |
parent | Update nyx.profile, crow.profile (diff) | |
download | firejail-6ea7c5bc4fc6e44c475ea59fb76b79fa150407c2.tar.gz firejail-6ea7c5bc4fc6e44c475ea59fb76b79fa150407c2.tar.zst firejail-6ea7c5bc4fc6e44c475ea59fb76b79fa150407c2.zip |
Merge branch 'master' of https://github.com/Lockdis/firejail into lockdis_ipc_fixes
Diffstat (limited to 'etc')
-rw-r--r-- | etc/crow.profile | 47 | ||||
-rw-r--r-- | etc/disable-common.inc | 1 | ||||
-rw-r--r-- | etc/nyx.profile | 52 |
3 files changed, 100 insertions, 0 deletions
diff --git a/etc/crow.profile b/etc/crow.profile new file mode 100644 index 000000000..a8a00f596 --- /dev/null +++ b/etc/crow.profile | |||
@@ -0,0 +1,47 @@ | |||
1 | # Firejail profile for crow | ||
2 | # Description: A translator that allows to translate and say selected text using Google, Yandex and Bing translate API | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include crow.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | mkdir ${HOME}/.config/crow | ||
10 | mkdir ${HOME}/.cache/gstreamer-1.0 | ||
11 | whitelist ${HOME}/.config/crow | ||
12 | whitelist ${HOME}/.cache/gstreamer-1.0 | ||
13 | |||
14 | include disable-common.inc | ||
15 | include disable-devel.inc | ||
16 | include disable-interpreters.inc | ||
17 | include disable-passwdmgr.inc | ||
18 | include disable-programs.inc | ||
19 | include disable-xdg.inc | ||
20 | |||
21 | include whitelist-common.inc | ||
22 | |||
23 | caps.drop all | ||
24 | ipc-namespace | ||
25 | netfilter | ||
26 | no3d | ||
27 | nodvd | ||
28 | nogroups | ||
29 | nonewprivs | ||
30 | noroot | ||
31 | notv | ||
32 | nou2f | ||
33 | novideo | ||
34 | protocol unix,inet,inet6,netlink | ||
35 | seccomp | ||
36 | shell none | ||
37 | |||
38 | disable-mnt | ||
39 | private-bin crow | ||
40 | private-dev | ||
41 | private-etc ca-certificates,ssl,machine-id,dconf,nsswitch.conf,resolv.conf,fonts,asound.conf,pulse,pki,crypto-policies | ||
42 | private-opt none | ||
43 | private-tmp | ||
44 | private-srv none | ||
45 | |||
46 | noexec ${HOME} | ||
47 | noexec /tmp | ||
diff --git a/etc/disable-common.inc b/etc/disable-common.inc index f98f247d5..80ea918df 100644 --- a/etc/disable-common.inc +++ b/etc/disable-common.inc | |||
@@ -305,6 +305,7 @@ blacklist ${HOME}/.msmtprc | |||
305 | blacklist ${HOME}/.mutt | 305 | blacklist ${HOME}/.mutt |
306 | blacklist ${HOME}/.muttrc | 306 | blacklist ${HOME}/.muttrc |
307 | blacklist ${HOME}/.netrc | 307 | blacklist ${HOME}/.netrc |
308 | blacklist ${HOME}/.nyx | ||
308 | blacklist ${HOME}/.pki | 309 | blacklist ${HOME}/.pki |
309 | blacklist ${HOME}/.local/share/pki | 310 | blacklist ${HOME}/.local/share/pki |
310 | blacklist ${HOME}/.smbcredentials | 311 | blacklist ${HOME}/.smbcredentials |
diff --git a/etc/nyx.profile b/etc/nyx.profile new file mode 100644 index 000000000..d5e1e1f84 --- /dev/null +++ b/etc/nyx.profile | |||
@@ -0,0 +1,52 @@ | |||
1 | # Firejail profile for nyx | ||
2 | # Description: Command-line status monitor for tor | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include nyx.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${PATH}/python2* | ||
10 | noblacklist ${PATH}/python3* | ||
11 | noblacklist /usr/lib/python2* | ||
12 | noblacklist /usr/lib/python3* | ||
13 | |||
14 | noblacklist ${HOME}/.nyx | ||
15 | mkdir ${HOME}/.nyx | ||
16 | whitelist ${HOME}/.nyx | ||
17 | |||
18 | include disable-common.inc | ||
19 | include disable-devel.inc | ||
20 | include disable-interpreters.inc | ||
21 | include disable-passwdmgr.inc | ||
22 | include disable-programs.inc | ||
23 | include disable-xdg.inc | ||
24 | |||
25 | caps.drop all | ||
26 | ipc-namespace | ||
27 | netfilter | ||
28 | no3d | ||
29 | nodbus | ||
30 | nodvd | ||
31 | nogroups | ||
32 | nonewprivs | ||
33 | noroot | ||
34 | nosound | ||
35 | notv | ||
36 | nou2f | ||
37 | novideo | ||
38 | protocol unix,inet,inet6 | ||
39 | seccomp | ||
40 | shell none | ||
41 | |||
42 | disable-mnt | ||
43 | private-bin nyx,python* | ||
44 | private-cache | ||
45 | private-dev | ||
46 | private-etc passwd,tor,fonts | ||
47 | private-opt none | ||
48 | private-srv none | ||
49 | private-tmp | ||
50 | |||
51 | noexec ${HOME} | ||
52 | noexec /tmp | ||