diff options
author | 2018-03-05 14:08:32 +0100 | |
---|---|---|
committer | 2018-03-05 14:08:32 +0100 | |
commit | b12589f30c1cb6b5b214ee12dcdb4dd847d7da41 (patch) | |
tree | b436b71e6ac6400e3eb64116e1209c1d05a17851 /etc | |
parent | blacklist smartgit password file - #1796 (diff) | |
parent | Add VS Code profile - see request in #1139 (diff) | |
download | firejail-b12589f30c1cb6b5b214ee12dcdb4dd847d7da41.tar.gz firejail-b12589f30c1cb6b5b214ee12dcdb4dd847d7da41.tar.zst firejail-b12589f30c1cb6b5b214ee12dcdb4dd847d7da41.zip |
Merge branch 'master' of https://github.com/netblue30/firejail
Diffstat (limited to 'etc')
-rw-r--r-- | etc/brackets.profile | 4 | ||||
-rw-r--r-- | etc/code.profile | 36 | ||||
-rw-r--r-- | etc/disable-programs.inc | 2 |
3 files changed, 40 insertions, 2 deletions
diff --git a/etc/brackets.profile b/etc/brackets.profile index a5a06f9f3..22a8dffea 100644 --- a/etc/brackets.profile +++ b/etc/brackets.profile | |||
@@ -22,8 +22,8 @@ noroot | |||
22 | nosound | 22 | nosound |
23 | notv | 23 | notv |
24 | novideo | 24 | novideo |
25 | protocol unix,inet,inet6 | 25 | protocol unix,inet,inet6,netlink |
26 | seccomp | 26 | seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,iopl,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,pciconfig_iobase,pciconfig_read,pciconfig_write,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,s390_mmio_read,s390_mmio_write,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplic |
27 | shell none | 27 | shell none |
28 | 28 | ||
29 | private-dev | 29 | private-dev |
diff --git a/etc/code.profile b/etc/code.profile new file mode 100644 index 000000000..af7d379ed --- /dev/null +++ b/etc/code.profile | |||
@@ -0,0 +1,36 @@ | |||
1 | # Firejail profile for Visual Studio Code | ||
2 | # This file is overwritten after every install/update | ||
3 | # Persistent local customizations | ||
4 | include /etc/firejail/code.local | ||
5 | # Persistent global definitions | ||
6 | include /etc/firejail/globals.local | ||
7 | |||
8 | noblacklist ${HOME}/.vscode | ||
9 | noblacklist ${HOME}/.config/Code | ||
10 | |||
11 | include /etc/firejail/disable-common.inc | ||
12 | include /etc/firejail/disable-passwdmgr.inc | ||
13 | include /etc/firejail/disable-programs.inc | ||
14 | |||
15 | caps.drop all | ||
16 | net none | ||
17 | netfilter | ||
18 | nodvd | ||
19 | nogroups | ||
20 | nonewprivs | ||
21 | noroot | ||
22 | nosound | ||
23 | notv | ||
24 | novideo | ||
25 | protocol unix,inet,inet6,netlink | ||
26 | seccomp | ||
27 | shell none | ||
28 | |||
29 | private-dev | ||
30 | private-tmp | ||
31 | |||
32 | # Disabling noexec ${HOME} for now since it will | ||
33 | # probably interfere with running some programmes | ||
34 | # in VS Code | ||
35 | # noexec ${HOME} | ||
36 | noexec /tmp | ||
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index c6cf453e5..a78355031 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc | |||
@@ -40,6 +40,7 @@ blacklist ${HOME}/.config/Atom | |||
40 | blacklist ${HOME}/.config/Audaciousrc | 40 | blacklist ${HOME}/.config/Audaciousrc |
41 | blacklist ${HOME}/.config/Brackets | 41 | blacklist ${HOME}/.config/Brackets |
42 | blacklist ${HOME}/.config/Clementine | 42 | blacklist ${HOME}/.config/Clementine |
43 | blacklist ${HOME}/.config/Code | ||
43 | blacklist ${HOME}/.config/Cryptocat | 44 | blacklist ${HOME}/.config/Cryptocat |
44 | blacklist ${HOME}/.config/Franz | 45 | blacklist ${HOME}/.config/Franz |
45 | blacklist ${HOME}/.config/FreeCAD | 46 | blacklist ${HOME}/.config/FreeCAD |
@@ -461,6 +462,7 @@ blacklist ${HOME}/.tuxguitar* | |||
461 | blacklist ${HOME}/.unknown-horizons | 462 | blacklist ${HOME}/.unknown-horizons |
462 | blacklist ${HOME}/.viking | 463 | blacklist ${HOME}/.viking |
463 | blacklist ${HOME}/.viking-maps | 464 | blacklist ${HOME}/.viking-maps |
465 | blacklist ${HOME}/.vscode | ||
464 | blacklist ${HOME}/.vst | 466 | blacklist ${HOME}/.vst |
465 | blacklist ${HOME}/.w3m | 467 | blacklist ${HOME}/.w3m |
466 | blacklist ${HOME}/.warzone2100-3.* | 468 | blacklist ${HOME}/.warzone2100-3.* |