diff options
author | 2018-08-14 11:42:02 -0400 | |
---|---|---|
committer | 2018-08-14 11:42:02 -0400 | |
commit | defb5a48918c9fda82ac9bcf5c8a301e5f60da23 (patch) | |
tree | 5bdd7335f7f733aa115c9aeb0b44099885b486ad /etc | |
parent | Add profile for electrum (diff) | |
download | firejail-defb5a48918c9fda82ac9bcf5c8a301e5f60da23.tar.gz firejail-defb5a48918c9fda82ac9bcf5c8a301e5f60da23.tar.zst firejail-defb5a48918c9fda82ac9bcf5c8a301e5f60da23.zip |
Add seccomp line from firefox-common to Tor Browser profiles
- The next version of TBB is based on Firefox 60 and will need the same changes to prevent breakage
Diffstat (limited to 'etc')
-rw-r--r-- | etc/start-tor-browser.profile | 4 | ||||
-rw-r--r-- | etc/torbrowser-launcher.profile | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/etc/start-tor-browser.profile b/etc/start-tor-browser.profile index fe9760ad4..6069c5174 100644 --- a/etc/start-tor-browser.profile +++ b/etc/start-tor-browser.profile | |||
@@ -17,6 +17,7 @@ include /etc/firejail/whitelist-var-common.inc | |||
17 | 17 | ||
18 | caps.drop all | 18 | caps.drop all |
19 | netfilter | 19 | netfilter |
20 | nodbus | ||
20 | nodvd | 21 | nodvd |
21 | nogroups | 22 | nogroups |
22 | nonewprivs | 23 | nonewprivs |
@@ -24,8 +25,9 @@ noroot | |||
24 | notv | 25 | notv |
25 | novideo | 26 | novideo |
26 | protocol unix,inet,inet6 | 27 | protocol unix,inet,inet6 |
27 | seccomp | 28 | seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplice |
28 | shell none | 29 | shell none |
30 | # tracelog may cause issues, see github issue #1930 | ||
29 | tracelog | 31 | tracelog |
30 | 32 | ||
31 | disable-mnt | 33 | disable-mnt |
diff --git a/etc/torbrowser-launcher.profile b/etc/torbrowser-launcher.profile index 9e3e0ef49..8b8789b5d 100644 --- a/etc/torbrowser-launcher.profile +++ b/etc/torbrowser-launcher.profile | |||
@@ -19,9 +19,11 @@ include /etc/firejail/disable-devel.inc | |||
19 | include /etc/firejail/disable-interpreters.inc | 19 | include /etc/firejail/disable-interpreters.inc |
20 | include /etc/firejail/disable-passwdmgr.inc | 20 | include /etc/firejail/disable-passwdmgr.inc |
21 | include /etc/firejail/disable-programs.inc | 21 | include /etc/firejail/disable-programs.inc |
22 | include /etc/firejail/disable-xdg.inc | ||
22 | 23 | ||
23 | mkdir ${HOME}/.config/torbrowser | 24 | mkdir ${HOME}/.config/torbrowser |
24 | mkdir ${HOME}/.local/share/torbrowser | 25 | mkdir ${HOME}/.local/share/torbrowser |
26 | whitelist ${DOWNLOADS} | ||
25 | whitelist ${HOME}/.config/torbrowser | 27 | whitelist ${HOME}/.config/torbrowser |
26 | whitelist ${HOME}/.local/share/torbrowser | 28 | whitelist ${HOME}/.local/share/torbrowser |
27 | include /etc/firejail/whitelist-common.inc | 29 | include /etc/firejail/whitelist-common.inc |
@@ -29,6 +31,7 @@ include /etc/firejail/whitelist-var-common.inc | |||
29 | 31 | ||
30 | caps.drop all | 32 | caps.drop all |
31 | netfilter | 33 | netfilter |
34 | nodbus | ||
32 | nodvd | 35 | nodvd |
33 | nogroups | 36 | nogroups |
34 | nonewprivs | 37 | nonewprivs |
@@ -36,8 +39,9 @@ noroot | |||
36 | notv | 39 | notv |
37 | novideo | 40 | novideo |
38 | protocol unix,inet,inet6 | 41 | protocol unix,inet,inet6 |
39 | seccomp | 42 | seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplice |
40 | shell none | 43 | shell none |
44 | # tracelog may cause issues, see github issue #1930 | ||
41 | tracelog | 45 | tracelog |
42 | 46 | ||
43 | disable-mnt | 47 | disable-mnt |