aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar kortewegdevries <kortewegdevries@protonmail.ch>2020-09-03 08:11:05 +0000
committerLibravatar GitHub <noreply@github.com>2020-09-03 08:11:05 +0000
commitfdc265b5b362db9dba3a8a03cae9e34d3e84fafb (patch)
tree795595174899a5d53335b05b2c938c6d7cb1e70c
parentNew profiles for balsa,trojita,kube (#3603) (diff)
downloadfirejail-fdc265b5b362db9dba3a8a03cae9e34d3e84fafb.tar.gz
firejail-fdc265b5b362db9dba3a8a03cae9e34d3e84fafb.tar.zst
firejail-fdc265b5b362db9dba3a8a03cae9e34d3e84fafb.zip
Add profile for twitch,youtube,youtube-music; fix git-cola ,add cola (#3577)
* Add profile for twitch,youtube wrappers * Fix git-cola, add Youtube music wrapper profiles * Fixes for git-cola again * Add profile for alternative name for git-cola * Fixes * Fix
-rw-r--r--etc/inc/disable-programs.inc4
-rw-r--r--etc/profile-a-l/cola.profile10
-rw-r--r--etc/profile-a-l/git-cola.profile29
-rw-r--r--etc/profile-m-z/twitch.profile36
-rw-r--r--etc/profile-m-z/youtube.profile37
-rw-r--r--etc/profile-m-z/youtubemusic-nativefier.profile38
-rw-r--r--etc/profile-m-z/ytmdesktop.profile39
-rw-r--r--src/firecfg/firecfg.config5
8 files changed, 192 insertions, 6 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index e22a9ae3a..c7206686c 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -135,9 +135,11 @@ blacklist ${HOME}/.config/Slack
135blacklist ${HOME}/.config/Standard Notes 135blacklist ${HOME}/.config/Standard Notes
136blacklist ${HOME}/.config/SubDownloader 136blacklist ${HOME}/.config/SubDownloader
137blacklist ${HOME}/.config/Thunar 137blacklist ${HOME}/.config/Thunar
138blacklist ${HOME}/.config/Twitch
138blacklist ${HOME}/.config/Unknown Organization 139blacklist ${HOME}/.config/Unknown Organization
139blacklist ${HOME}/.config/VirtualBox 140blacklist ${HOME}/.config/VirtualBox
140blacklist ${HOME}/.config/Wire 141blacklist ${HOME}/.config/Wire
142blacklist ${HOME}/.config/Youtube
141blacklist ${HOME}/.config/Zeal 143blacklist ${HOME}/.config/Zeal
142blacklist ${HOME}/.config/ZeGrapher Project 144blacklist ${HOME}/.config/ZeGrapher Project
143blacklist ${HOME}/.config/abiword 145blacklist ${HOME}/.config/abiword
@@ -410,6 +412,8 @@ blacklist ${HOME}/.config/yandex-browser
410blacklist ${HOME}/.config/yandex-browser-beta 412blacklist ${HOME}/.config/yandex-browser-beta
411blacklist ${HOME}/.config/yelp 413blacklist ${HOME}/.config/yelp
412blacklist ${HOME}/.config/youtube-dl 414blacklist ${HOME}/.config/youtube-dl
415blacklist ${HOME}/.config/youtubemusic-nativefier-040164
416blacklist ${HOME}/.config/youtube-music-desktop-app
413blacklist ${HOME}/.config/youtube-viewer 417blacklist ${HOME}/.config/youtube-viewer
414blacklist ${HOME}/.config/zathura 418blacklist ${HOME}/.config/zathura
415blacklist ${HOME}/.config/zoomus.conf 419blacklist ${HOME}/.config/zoomus.conf
diff --git a/etc/profile-a-l/cola.profile b/etc/profile-a-l/cola.profile
new file mode 100644
index 000000000..e5debfd82
--- /dev/null
+++ b/etc/profile-a-l/cola.profile
@@ -0,0 +1,10 @@
1# Firejail profile for cola
2# Description: Linux native frontend for Git,alternative call for git-cola
3# This file is overwritten after every install/update
4# Persistent local customizations
5include cola.local
6# Persistent global definitions
7include globals.local
8
9# Redirect
10include git-cola.profile \ No newline at end of file
diff --git a/etc/profile-a-l/git-cola.profile b/etc/profile-a-l/git-cola.profile
index 30e80f519..4708078dd 100644
--- a/etc/profile-a-l/git-cola.profile
+++ b/etc/profile-a-l/git-cola.profile
@@ -12,6 +12,7 @@ noblacklist ${HOME}/.gitconfig
12noblacklist ${HOME}/.git-credentials 12noblacklist ${HOME}/.git-credentials
13noblacklist ${HOME}/.gnupg 13noblacklist ${HOME}/.gnupg
14noblacklist ${HOME}/.ssh 14noblacklist ${HOME}/.ssh
15noblacklist ${HOME}/.subversion
15noblacklist ${HOME}/.config/git 16noblacklist ${HOME}/.config/git
16noblacklist ${HOME}/.config/git-cola 17noblacklist ${HOME}/.config/git-cola
17# Put your editor,diff viewer config path below and uncomment to load settings 18# Put your editor,diff viewer config path below and uncomment to load settings
@@ -28,7 +29,19 @@ include disable-passwdmgr.inc
28include disable-programs.inc 29include disable-programs.inc
29include disable-xdg.inc 30include disable-xdg.inc
30 31
32whitelist ${RUNUSER}/gnupg
33whitelist ${RUNUSER}/keyring
34# Whitelist your editor, diff viewer, gnupg path below in /usr/share/
35whitelist /usr/share/git
36whitelist /usr/share/git-cola
37whitelist /usr/share/git-core
38whitelist /usr/share/git-gui
39whitelist /usr/share/gitk
40whitelist /usr/share/gitweb
41whitelist /usr/share/gnupg
42whitelist /usr/share/gnupg2
31include whitelist-runuser-common.inc 43include whitelist-runuser-common.inc
44include whitelist-usr-share-common.inc
32include whitelist-var-common.inc 45include whitelist-var-common.inc
33 46
34apparmor 47apparmor
@@ -49,18 +62,22 @@ seccomp
49shell none 62shell none
50tracelog 63tracelog
51 64
52# private-bin atom,bash,colordiff,emacs,fldiff,geany,gedit,git,git gui,git-cola,git-dag,gitk,gpg,gvim,leafpad,meld,mousepad,nano,notepadqq,python*,sh,ssh,vim,vimdiff,which,xed 65# Add your own diff viewer,editor,pinentry program
66# pinentry-curses,pinentry-emacs,pinentry-fltk,pinentry-gnome3,pinentry-gtk,pinentry-gtk2,pinentry-gtk-2,pinentry-qt,pinentry-qt4,pinentry-tty,pinentry-x2go,pinentry-kwallet" for gpg
67private-bin basename,bash,cola,envsubst,gettext,git,git-cola,git-dag,git-gui,gitk,gpg,gpg-agent,nano,ps,python*,sh,ssh,ssh-agent,tclsh,tr,wc,which,xed
53private-cache 68private-cache
54private-dev 69private-dev
55# Comment if you sign commits with GPG 70private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,gitconfig,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,localtime,login.defs,machine-id,mime.types,nsswitch.conf,passwd,pki,resolv.conf,selinux,ssh,ssl,X11,xdg
56private-etc alternatives,ca-certificates,crypto-policies,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,localtime,login.defs,machine-id,mime.types,nsswitch.conf,passwd,pki,resolv.conf,selinux,ssl,X11,xdg
57private-tmp 71private-tmp
72writable-run-user
58 73
59dbus-user filter 74# Breaks meld as diff viewer
75# dbus-user filter
60# Uncomment if you need keyring access 76# Uncomment if you need keyring access
61# dbus-user.talk org.freedesktop.secrets 77# dbus-user.talk org.freedesktop.secrets
62dbus-system none 78dbus-system none
63 79
64read-only ${HOME}/.ssh
65read-only ${HOME}/.gnupg
66read-only ${HOME}/.git-credentials 80read-only ${HOME}/.git-credentials
81
82# Comment if you need to allow hosts
83read-only ${HOME}/.ssh
diff --git a/etc/profile-m-z/twitch.profile b/etc/profile-m-z/twitch.profile
new file mode 100644
index 000000000..3c50344f1
--- /dev/null
+++ b/etc/profile-m-z/twitch.profile
@@ -0,0 +1,36 @@
1# Firejail profile for twitch
2# Description: Unofficial electron based desktop warpper for Twitch
3# This file is overwritten after every install/update
4# Persistent local customizations
5include twitch.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${HOME}/.config/Twitch
10
11include disable-devel.inc
12include disable-exec.inc
13include disable-interpreters.inc
14include disable-shell.inc
15include disable-xdg.inc
16
17mkdir ${HOME}/.config/Twitch
18whitelist ${HOME}/.config/Twitch
19include whitelist-common.inc
20include whitelist-runuser-common.inc
21include whitelist-usr-share-common.inc
22include whitelist-var-common.inc
23
24seccomp !chroot
25shell none
26
27disable-mnt
28private-bin twitch
29private-cache
30private-dev
31private-etc alsa,alternatives,asound.conf,ati,bumblebee,ca-certificates,crypto-policies,drirc,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,mime.types,nsswitch.conf,nvidia,pki,pulse,resolv.conf,selinux,ssl,X11,xdg
32private-opt Twitch
33private-tmp
34
35# Redirect
36include electron.profile
diff --git a/etc/profile-m-z/youtube.profile b/etc/profile-m-z/youtube.profile
new file mode 100644
index 000000000..a6c7750a9
--- /dev/null
+++ b/etc/profile-m-z/youtube.profile
@@ -0,0 +1,37 @@
1# Firejail profile for youtube
2# Description: Unofficial electron based desktop warpper for YouTube
3# This file is overwritten after every install/update
4# Persistent local customizations
5include youtube.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${HOME}/.config/Youtube
10
11include disable-devel.inc
12include disable-exec.inc
13include disable-interpreters.inc
14include disable-shell.inc
15include disable-xdg.inc
16
17mkdir ${HOME}/.config/Youtube
18whitelist ${HOME}/.config/Youtube
19include whitelist-common.inc
20include whitelist-runuser-common.inc
21include whitelist-usr-share-common.inc
22include whitelist-var-common.inc
23
24novideo
25seccomp !chroot
26shell none
27
28disable-mnt
29private-bin youtube
30private-cache
31private-dev
32private-etc alsa,alternatives,asound.conf,ati,bumblebee,ca-certificates,crypto-policies,drirc,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,mime.types,nsswitch.conf,nvidia,pki,pulse,resolv.conf,selinux,ssl,X11,xdg
33private-opt Youtube
34private-tmp
35
36# Redirect
37include electron.profile
diff --git a/etc/profile-m-z/youtubemusic-nativefier.profile b/etc/profile-m-z/youtubemusic-nativefier.profile
new file mode 100644
index 000000000..3a94a5707
--- /dev/null
+++ b/etc/profile-m-z/youtubemusic-nativefier.profile
@@ -0,0 +1,38 @@
1# Firejail profile for youtubemusic-nativefier
2# Description: Unofficial electron based desktop warpper for YouTube Music
3# This file is overwritten after every install/update
4# Persistent local customizations
5include youtube.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${HOME}/.config/youtubemusic-nativefier-040164
10
11include disable-devel.inc
12include disable-exec.inc
13include disable-interpreters.inc
14include disable-shell.inc
15include disable-xdg.inc
16
17mkdir ${HOME}/.config/youtubemusic-nativefier-040164
18whitelist ${HOME}/.config/youtubemusic-nativefier-040164
19include whitelist-common.inc
20include whitelist-runuser-common.inc
21include whitelist-usr-share-common.inc
22include whitelist-var-common.inc
23
24nou2f
25novideo
26seccomp !chroot
27shell none
28
29disable-mnt
30private-bin youtubemusic-nativefier
31private-cache
32private-dev
33private-etc alsa,alternatives,asound.conf,ati,bumblebee,ca-certificates,crypto-policies,drirc,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,mime.types,nsswitch.conf,nvidia,pki,pulse,resolv.conf,selinux,ssl,X11,xdg
34private-opt youtubemusic-nativefier
35private-tmp
36
37# Redirect
38include electron.profile
diff --git a/etc/profile-m-z/ytmdesktop.profile b/etc/profile-m-z/ytmdesktop.profile
new file mode 100644
index 000000000..5c37b838b
--- /dev/null
+++ b/etc/profile-m-z/ytmdesktop.profile
@@ -0,0 +1,39 @@
1# Firejail profile for ytmdesktop
2# Description: Unofficial electron based desktop warpper for YouTube Music
3# This file is overwritten after every install/update
4# Persistent local customizations
5include youtube.local
6# Persistent global definitions
7include globals.local
8
9ignore dbus-user none
10
11noblacklist ${HOME}/.config/youtube-music-desktop-app
12
13include disable-devel.inc
14include disable-exec.inc
15include disable-interpreters.inc
16include disable-xdg.inc
17
18mkdir ${HOME}/.config/youtube-music-desktop-app
19whitelist ${HOME}/.config/youtube-music-desktop-app
20include whitelist-common.inc
21include whitelist-runuser-common.inc
22include whitelist-usr-share-common.inc
23include whitelist-var-common.inc
24
25nou2f
26novideo
27seccomp !chroot
28shell none
29
30disable-mnt
31# private-bin env,ytmdesktop
32private-cache
33private-dev
34private-etc alsa,alternatives,asound.conf,ati,bumblebee,ca-certificates,crypto-policies,drirc,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,mime.types,nsswitch.conf,nvidia,pki,pulse,resolv.conf,selinux,ssl,X11,xdg
35# private-opt
36private-tmp
37
38# Redirect
39include electron.profile
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index 5e0ca8de4..3eb33908d 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -136,6 +136,7 @@ clocks
136cmus 136cmus
137code 137code
138code-oss 138code-oss
139cola
139com.github.dahenson.agenda 140com.github.dahenson.agenda
140com.github.johnfactotum.Foliate 141com.github.johnfactotum.Foliate
141com.gitlab.newsflash 142com.gitlab.newsflash
@@ -755,6 +756,7 @@ truecraft
755tshark 756tshark
756tuxguitar 757tuxguitar
757tvbrowser 758tvbrowser
759twitch
758udiskie 760udiskie
759uefitool 761uefitool
760uget-gtk 762uget-gtk
@@ -832,8 +834,11 @@ xreader-thumbnailer
832xviewer 834xviewer
833yandex-browser 835yandex-browser
834yelp 836yelp
837youtube
835youtube-dl 838youtube-dl
836youtube-viewer 839youtube-viewer
840youtubemusic-nativefier
841ytmdesktop
837zaproxy 842zaproxy
838zart 843zart
839zathura 844zathura