aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-08-09 20:16:35 +0200
committerLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-08-09 20:16:35 +0200
commit613dad2103e5690e621a9182a520890f17b69a3c (patch)
tree8b43e1dc007907a8787b8b880261feb504dfb368
parentprofile fixes (1) (diff)
downloadfirejail-613dad2103e5690e621a9182a520890f17b69a3c.tar.gz
firejail-613dad2103e5690e621a9182a520890f17b69a3c.tar.zst
firejail-613dad2103e5690e621a9182a520890f17b69a3c.zip
profile fixes (2)
-rw-r--r--etc/allow-ruby.inc2
-rw-r--r--etc/anki.profile3
-rw-r--r--etc/artha.profile2
-rw-r--r--etc/baobab.profile2
-rw-r--r--etc/celluloid.profile2
-rw-r--r--etc/claws-mail.profile2
-rw-r--r--etc/cmus.profile2
-rw-r--r--etc/digikam.profile3
-rw-r--r--etc/evince.profile4
-rw-r--r--etc/exiftool.profile1
-rw-r--r--etc/freecad.profile6
-rw-r--r--etc/gedit.profile2
-rw-r--r--etc/hexchat.profile2
-rw-r--r--etc/mpv.profile1
-rw-r--r--etc/mupdf.profile5
-rw-r--r--etc/musescore.profile3
-rw-r--r--etc/neverputt.profile2
-rw-r--r--etc/pavucontrol.profile11
-rw-r--r--etc/psi-plus.profile4
-rw-r--r--etc/quassel.profile3
-rw-r--r--etc/templates/profile.template3
-rw-r--r--etc/wget.profile2
-rw-r--r--etc/youtube-dl.profile2
23 files changed, 43 insertions, 26 deletions
diff --git a/etc/allow-ruby.inc b/etc/allow-ruby.inc
new file mode 100644
index 000000000..3165a981a
--- /dev/null
+++ b/etc/allow-ruby.inc
@@ -0,0 +1,2 @@
1noblacklist ${PATH}/ruby
2noblacklist /usr/lib/ruby
diff --git a/etc/anki.profile b/etc/anki.profile
index c349376ff..a0a79ef48 100644
--- a/etc/anki.profile
+++ b/etc/anki.profile
@@ -42,7 +42,8 @@ notv
42nou2f 42nou2f
43novideo 43novideo
44protocol unix,inet,inet6 44protocol unix,inet,inet6
45seccomp 45# QtWebengine needs chroot to set up its own sandbox
46seccomp !chroot
46shell none 47shell none
47tracelog 48tracelog
48 49
diff --git a/etc/artha.profile b/etc/artha.profile
index f1d30a415..e7278fe10 100644
--- a/etc/artha.profile
+++ b/etc/artha.profile
@@ -16,7 +16,7 @@ include disable-interpreters.inc
16include disable-passwdmgr.inc 16include disable-passwdmgr.inc
17include disable-programs.inc 17include disable-programs.inc
18 18
19mkdir ${HOME}/.config/artha.conf 19mkfile ${HOME}/.config/artha.conf
20mkdir ${HOME}/.config/enchant 20mkdir ${HOME}/.config/enchant
21whitelist ${HOME}/.config/artha.conf 21whitelist ${HOME}/.config/artha.conf
22whitelist ${HOME}/.config/enchant 22whitelist ${HOME}/.config/enchant
diff --git a/etc/baobab.profile b/etc/baobab.profile
index c419aa202..eb0064115 100644
--- a/etc/baobab.profile
+++ b/etc/baobab.profile
@@ -16,7 +16,7 @@ include disable-passwdmgr.inc
16caps.drop all 16caps.drop all
17net none 17net none
18no3d 18no3d
19nodbus 19#nodbus
20nodvd 20nodvd
21nogroups 21nogroups
22nonewprivs 22nonewprivs
diff --git a/etc/celluloid.profile b/etc/celluloid.profile
index d06eb7a65..ab68c7f13 100644
--- a/etc/celluloid.profile
+++ b/etc/celluloid.profile
@@ -41,7 +41,7 @@ tracelog
41 41
42private-bin celluloid,env,gnome-mpv,python*,youtube-dl 42private-bin celluloid,env,gnome-mpv,python*,youtube-dl
43private-cache 43private-cache
44private-etc alternatives,ca-certificates,crypto-policies,dconf,drirc,fonts,gtk-3.0,hosts,libva.conf,localtime,machine-id,pkcs11,pki,resolv.conf,selinux,ssl,xdg 44private-etc alternatives,ca-certificates,crypto-policies,dconf,drirc,fonts,gtk-3.0,hosts,ld.so.cache,libva.conf,localtime,machine-id,pkcs11,pki,resolv.conf,selinux,ssl,xdg
45private-dev 45private-dev
46private-tmp 46private-tmp
47 47
diff --git a/etc/claws-mail.profile b/etc/claws-mail.profile
index 33c0a3369..1790b0b17 100644
--- a/etc/claws-mail.profile
+++ b/etc/claws-mail.profile
@@ -16,7 +16,7 @@ include disable-interpreters.inc
16include disable-passwdmgr.inc 16include disable-passwdmgr.inc
17include disable-programs.inc 17include disable-programs.inc
18 18
19whitelist /usr/share/doc 19whitelist /usr/share/doc/claws-mail
20whitelist /usr/share/gnupg 20whitelist /usr/share/gnupg
21whitelist /usr/share/gnupg2 21whitelist /usr/share/gnupg2
22include whitelist-usr-share-common.inc 22include whitelist-usr-share-common.inc
diff --git a/etc/cmus.profile b/etc/cmus.profile
index 7e12a06de..fa1e5d722 100644
--- a/etc/cmus.profile
+++ b/etc/cmus.profile
@@ -27,4 +27,4 @@ seccomp
27shell none 27shell none
28 28
29private-bin cmus 29private-bin cmus
30private-etc alternatives,asound.conf,ca-certificates,crypto-policies,group,machine-id,pki,pulse,ssl 30private-etc alternatives,asound.conf,ca-certificates,crypto-policies,group,machine-id,pki,pulse,resolv.conf,ssl
diff --git a/etc/digikam.profile b/etc/digikam.profile
index 1b80981f7..e66434444 100644
--- a/etc/digikam.profile
+++ b/etc/digikam.profile
@@ -32,7 +32,8 @@ nonewprivs
32noroot 32noroot
33notv 33notv
34protocol unix,inet,inet6,netlink 34protocol unix,inet,inet6,netlink
35seccomp 35# QtWebengine needs chroot to set up its own sandbox
36seccomp !chroot
36shell none 37shell none
37 38
38# private-dev - prevents libdc1394 loading; this lib is used to connect to a camera device 39# private-dev - prevents libdc1394 loading; this lib is used to connect to a camera device
diff --git a/etc/evince.profile b/etc/evince.profile
index ba68e45b4..143a347e6 100644
--- a/etc/evince.profile
+++ b/etc/evince.profile
@@ -47,7 +47,7 @@ tracelog
47private-bin evince,evince-previewer,evince-thumbnailer 47private-bin evince,evince-previewer,evince-thumbnailer
48private-cache 48private-cache
49private-dev 49private-dev
50private-etc alternatives,fonts,group,machine-id,passwd 50private-etc alternatives,fonts,group,ld.so.cache,machine-id,passwd
51# private-lib might break two-page-view on some systems 51# private-lib might break two-page-view on some systems
52private-lib evince,gconv,gdk-pixbuf-2.*,gio,gvfs/libgvfscommon.so,libdjvulibre.so.*,libgconf-2.so.*,libgraphite2.so.*,libpoppler-glib.so.*,librsvg-2.so.*,libspectre.so.* 52private-lib evince,gcc/*/*/libgcc_s.so.*,gcc/*/*/libstdc++.so.*,gconv,gdk-pixbuf-2.*,gio,gvfs/libgvfscommon.so,libdjvulibre.so.*,libgconf-2.so.*,libgraphite2.so.*,libpoppler-glib.so.*,librsvg-2.so.*,libspectre.so.*
53private-tmp 53private-tmp
diff --git a/etc/exiftool.profile b/etc/exiftool.profile
index e455d32c7..e9c7d290a 100644
--- a/etc/exiftool.profile
+++ b/etc/exiftool.profile
@@ -17,6 +17,7 @@ include disable-passwdmgr.inc
17include disable-programs.inc 17include disable-programs.inc
18 18
19whitelist /usr/share/perl5 19whitelist /usr/share/perl5
20whitelist /usr/share/perl-image-exiftool
20include whitelist-usr-share-common.inc 21include whitelist-usr-share-common.inc
21 22
22apparmor 23apparmor
diff --git a/etc/freecad.profile b/etc/freecad.profile
index 079c85fb1..6f0f52a55 100644
--- a/etc/freecad.profile
+++ b/etc/freecad.profile
@@ -9,6 +9,10 @@ include globals.local
9noblacklist ${HOME}/.config/FreeCAD 9noblacklist ${HOME}/.config/FreeCAD
10noblacklist ${DOCUMENTS} 10noblacklist ${DOCUMENTS}
11 11
12# Allow python (blacklisted by disable-interpreters.inc)
13include allow-python2.inc
14include allow-python3.inc
15
12include disable-common.inc 16include disable-common.inc
13include disable-devel.inc 17include disable-devel.inc
14include disable-exec.inc 18include disable-exec.inc
@@ -33,7 +37,7 @@ protocol unix
33seccomp 37seccomp
34shell none 38shell none
35 39
36private-bin freecad,freecadcmd 40private-bin freecad,freecadcmd,python*
37private-cache 41private-cache
38private-dev 42private-dev
39private-tmp 43private-tmp
diff --git a/etc/gedit.profile b/etc/gedit.profile
index 6d575e850..7dd6f270e 100644
--- a/etc/gedit.profile
+++ b/etc/gedit.profile
@@ -42,6 +42,6 @@ tracelog
42 42
43# private-bin gedit 43# private-bin gedit
44private-dev 44private-dev
45private-lib aspell,gconv,gedit,libgspell-1.so.*,libgtksourceview-3.0.so.*,libpeas-gtk-1.0.so.*,libreadline.so.*,libtinfo.so.* 45private-lib aspell,gconv,gedit,libgspell-1.so.*,libgtksourceview-*,libpeas-gtk-1.0.so.*,libreadline.so.*,libtinfo.so.*
46private-tmp 46private-tmp
47 47
diff --git a/etc/hexchat.profile b/etc/hexchat.profile
index d032c93e6..835205f03 100644
--- a/etc/hexchat.profile
+++ b/etc/hexchat.profile
@@ -26,14 +26,12 @@ include whitelist-common.inc
26include whitelist-var-common.inc 26include whitelist-var-common.inc
27 27
28caps.drop all 28caps.drop all
29machine-id
30netfilter 29netfilter
31no3d 30no3d
32nodvd 31nodvd
33nogroups 32nogroups
34nonewprivs 33nonewprivs
35noroot 34noroot
36nosound
37notv 35notv
38nou2f 36nou2f
39novideo 37novideo
diff --git a/etc/mpv.profile b/etc/mpv.profile
index 6e587fc6a..56cd66199 100644
--- a/etc/mpv.profile
+++ b/etc/mpv.profile
@@ -27,6 +27,7 @@ include disable-passwdmgr.inc
27include disable-programs.inc 27include disable-programs.inc
28include disable-xdg.inc 28include disable-xdg.inc
29 29
30whitelist /usr/share/vulkan
30include whitelist-usr-share-common.inc 31include whitelist-usr-share-common.inc
31include whitelist-var-common.inc 32include whitelist-var-common.inc
32 33
diff --git a/etc/mupdf.profile b/etc/mupdf.profile
index 673c9fd0b..99945bdc9 100644
--- a/etc/mupdf.profile
+++ b/etc/mupdf.profile
@@ -32,14 +32,13 @@ nou2f
32novideo 32novideo
33protocol unix 33protocol unix
34seccomp 34seccomp
35# seccomp.keep access,arch_prctl,brk,clone,close,connect,execve,exit_group,fchmod,fchown,fcntl,fstat,futex,getcwd,getpeername,getrlimit,getsockname,getsockopt,lseek,lstat,mlock,mmap,mprotect,mremap,munmap,nanosleep,open,poll,prctl,read,recvfrom,recvmsg,restart_syscall,rt_sigaction,rt_sigprocmask,select,sendmsg,set_robust_list,set_tid_address,setresgid,setresuid,shmat,shmctl,shmget,shutdown,socket,stat,sysinfo,uname,unshare,wait4,write,writev
36shell none 35shell none
37tracelog 36tracelog
38 37
39# private-bin mupdf,rm,sh,tempfile 38# private-bin mupdf,rm,sh,tempfile
40private-dev 39private-dev
41private-etc alternatives,fonts 40private-etc alternatives,fonts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload
42private-tmp 41private-tmp
43 42
44memory-deny-write-execute 43# memory-deny-write-execute
45read-only ${HOME} 44read-only ${HOME}
diff --git a/etc/musescore.profile b/etc/musescore.profile
index 9750a31f4..b3693c956 100644
--- a/etc/musescore.profile
+++ b/etc/musescore.profile
@@ -33,7 +33,8 @@ noroot
33notv 33notv
34novideo 34novideo
35protocol unix,inet,inet6 35protocol unix,inet,inet6
36seccomp 36# QtWebengine needs chroot to set up its own sandbox
37seccomp !chroot
37shell none 38shell none
38tracelog 39tracelog
39 40
diff --git a/etc/neverputt.profile b/etc/neverputt.profile
index 93fb14e07..d370d1218 100644
--- a/etc/neverputt.profile
+++ b/etc/neverputt.profile
@@ -5,5 +5,7 @@ include neverputt.local
5# added by included profile 5# added by included profile
6#include globals.local 6#include globals.local
7 7
8private-bin neverputt
9
8# Redirect 10# Redirect
9include neverball.profile 11include neverball.profile
diff --git a/etc/pavucontrol.profile b/etc/pavucontrol.profile
index 5bbe1386f..0ae9f08af 100644
--- a/etc/pavucontrol.profile
+++ b/etc/pavucontrol.profile
@@ -16,11 +16,12 @@ include disable-passwdmgr.inc
16include disable-programs.inc 16include disable-programs.inc
17include disable-xdg.inc 17include disable-xdg.inc
18 18
19mkfile ${HOME}/.config/pavucontrol.ini 19# whitelisting in ${HOME} is broken, see #3112
20whitelist ${HOME}/.config/pavucontrol.ini 20#mkfile ${HOME}/.config/pavucontrol.ini
21#whitelist ${HOME}/.config/pavucontrol.ini
21whitelist /usr/share/pavucontrol 22whitelist /usr/share/pavucontrol
22whitelist /usr/share/pavucontrol-qt 23whitelist /usr/share/pavucontrol-qt
23include whitelist-common.inc 24#include whitelist-common.inc
24include whitelist-usr-share-common.inc 25include whitelist-usr-share-common.inc
25include whitelist-var-common.inc 26include whitelist-var-common.inc
26 27
@@ -39,6 +40,7 @@ novideo
39protocol unix,inet,inet6 40protocol unix,inet,inet6
40seccomp 41seccomp
41shell none 42shell none
43tracelog
42 44
43disable-mnt 45disable-mnt
44private-bin pavucontrol 46private-bin pavucontrol
@@ -48,4 +50,5 @@ private-etc alternatives,asound.conf,avahi,fonts,machine-id,pulse
48private-lib 50private-lib
49private-tmp 51private-tmp
50 52
51#memory-deny-write-execute - breaks on Arch (see issue #1803) 53# mdwe is broken under Wayland, but works under Xorg.
54#memory-deny-write-execute
diff --git a/etc/psi-plus.profile b/etc/psi-plus.profile
index 087f90966..16fffe517 100644
--- a/etc/psi-plus.profile
+++ b/etc/psi-plus.profile
@@ -36,10 +36,10 @@ notv
36nou2f 36nou2f
37novideo 37novideo
38protocol unix,inet,inet6 38protocol unix,inet,inet6
39seccomp 39# QtWebengine needs chroot to set up its own sandbox
40seccomp !chroot
40shell none 41shell none
41 42
42disable-mnt 43disable-mnt
43private-dev 44private-dev
44private-tmp 45private-tmp
45
diff --git a/etc/quassel.profile b/etc/quassel.profile
index a78d1edcd..c65089e20 100644
--- a/etc/quassel.profile
+++ b/etc/quassel.profile
@@ -19,7 +19,8 @@ nonewprivs
19noroot 19noroot
20notv 20notv
21protocol unix,inet,inet6 21protocol unix,inet,inet6
22seccomp 22# QtWebengine needs chroot to set up its own sandbox
23seccomp !chroot
23 24
24private-cache 25private-cache
25private-tmp 26private-tmp
diff --git a/etc/templates/profile.template b/etc/templates/profile.template
index dcf6dd201..7bfc3cf0d 100644
--- a/etc/templates/profile.template
+++ b/etc/templates/profile.template
@@ -87,6 +87,9 @@ include globals.local
87# Allow lua (blacklisted by disable-interpreters.inc) 87# Allow lua (blacklisted by disable-interpreters.inc)
88#include allow-lua.inc 88#include allow-lua.inc
89 89
90# Allow ruby (blacklisted by disable-interpreters.inc)
91#include allow-ruby.inc
92
90# Allows files commonly used by IDEs 93# Allows files commonly used by IDEs
91#include allow-common-devel.inc 94#include allow-common-devel.inc
92 95
diff --git a/etc/wget.profile b/etc/wget.profile
index 4bf354652..9c2cddb67 100644
--- a/etc/wget.profile
+++ b/etc/wget.profile
@@ -35,6 +35,6 @@ shell none
35 35
36# private-bin wget 36# private-bin wget
37private-dev 37private-dev
38# private-etc alternatives,ca-certificates,crypto-policie,pki,resolv.conf,ssl 38# private-etc alternatives,ca-certificates,crypto-policies,pki,resolv.conf,ssl
39# private-tmp 39# private-tmp
40 40
diff --git a/etc/youtube-dl.profile b/etc/youtube-dl.profile
index 74c07d96b..5fa72c9dc 100644
--- a/etc/youtube-dl.profile
+++ b/etc/youtube-dl.profile
@@ -56,7 +56,7 @@ tracelog
56private-bin env,ffmpeg,python*,youtube-dl 56private-bin env,ffmpeg,python*,youtube-dl
57private-cache 57private-cache
58private-dev 58private-dev
59private-etc alternatives,ca-certificates,crypto-policies,hostname,hosts,mime.types,pki,resolv.conf,ssl,youtube-dl.conf 59private-etc alternatives,ca-certificates,crypto-policies,hostname,hosts,ld.so.cache,mime.types,pki,resolv.conf,ssl,youtube-dl.conf
60private-tmp 60private-tmp
61 61
62#memory-deny-write-execute - breaks on Arch (see issue #1803) 62#memory-deny-write-execute - breaks on Arch (see issue #1803)