aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dpeta <Jasprose@protonmail.com>2022-12-24 23:21:43 +0100
committerLibravatar Dpeta <jasprose@protonmail.com>2022-12-25 15:30:47 +0100
commit3af6c406834d5f18d1422ce95ebd02646862ce74 (patch)
tree25f81c5627394d2a80ab56520eb570a1a263a514
parenttesting (diff)
downloadfirejail-3af6c406834d5f18d1422ce95ebd02646862ce74.tar.gz
firejail-3af6c406834d5f18d1422ce95ebd02646862ce74.tar.zst
firejail-3af6c406834d5f18d1422ce95ebd02646862ce74.zip
Add Chatterino profile
-rw-r--r--etc/inc/disable-programs.inc1
-rw-r--r--etc/profile-a-l/chatterino.profile116
-rw-r--r--src/firecfg/firecfg.config1
3 files changed, 118 insertions, 0 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index b52bcaa11..698ee7eca 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -876,6 +876,7 @@ blacklist ${HOME}/.local/share/caja-python
876blacklist ${HOME}/.local/share/calligragemini 876blacklist ${HOME}/.local/share/calligragemini
877blacklist ${HOME}/.local/share/cantata 877blacklist ${HOME}/.local/share/cantata
878blacklist ${HOME}/.local/share/cdprojektred 878blacklist ${HOME}/.local/share/cdprojektred
879blacklist ${HOME}/.local/share/chatterino
879blacklist ${HOME}/.local/share/clipit 880blacklist ${HOME}/.local/share/clipit
880blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate 881blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate
881blacklist ${HOME}/.local/share/contacts 882blacklist ${HOME}/.local/share/contacts
diff --git a/etc/profile-a-l/chatterino.profile b/etc/profile-a-l/chatterino.profile
new file mode 100644
index 000000000..bbb536827
--- /dev/null
+++ b/etc/profile-a-l/chatterino.profile
@@ -0,0 +1,116 @@
1# Firejail profile for Chatterino
2# Description: Chat client for https://twitch.tv
3# This file is overwritten after every install/update
4# Persistent local customizations
5include chatterino.local
6# Persistent global definitions
7include globals.local
8
9# Also allow access to mpv/vlc, they're usable via streamlink.
10noblacklist ${HOME}/.cache/vlc
11noblacklist ${HOME}/.config/aacs
12noblacklist ${HOME}/.config/mpv
13noblacklist ${HOME}/.config/pulse
14noblacklist ${HOME}/.config/vlc
15noblacklist ${HOME}/.local/share/chatterino
16noblacklist ${HOME}/.local/share/vlc
17# To upload images, whitelist/noblacklist their path in chatterino.local.
18#noblacklist ${HOME}/Pictures/
19# For custom notification sounds, whitelist/noblacklist their path in chatterino.local.
20#noblacklist ${HOME}/Music/
21
22# Allow Python for Streamlink integration (blacklisted by disable-interpreters.inc)
23include allow-python3.inc
24
25# Allow Lua for mpv (blacklisted by disable-interpreters.inc)
26include allow-lua.inc
27
28# disable-*.inc includes
29include disable-common.inc
30include disable-devel.inc
31include disable-exec.inc
32include disable-interpreters.inc
33include disable-proc.inc
34include disable-programs.inc
35include disable-xdg.inc
36
37# Also allow access to mpv/vlc, they're usable via streamlink.
38mkdir ${HOME}/.cache/vlc
39mkdir ${HOME}/.config/aacs
40mkdir ${HOME}/.config/mpv
41mkdir ${HOME}/.config/pulse
42mkdir ${HOME}/.config/vlc
43mkdir ${HOME}/.local/share/chatterino
44mkdir ${HOME}/.local/share/vlc
45whitelist ${HOME}/.cache/vlc
46whitelist ${HOME}/.config/aacs
47whitelist ${HOME}/.config/mpv
48whitelist ${HOME}/.config/pulse
49whitelist ${HOME}/.config/vlc
50whitelist ${HOME}/.local/share/chatterino
51whitelist ${HOME}/.local/share/vlc
52# To upload images, whitelist/noblacklist their path in chatterino.local.
53#whitelist ${HOME}/Pictures/
54# For custom notification sounds, whitelist/noblacklist their path in chatterino.local.
55#whitelist ${HOME}/Music/
56# whitelist-*.inc includes
57include whitelist-common.inc
58include whitelist-run-common.inc
59include whitelist-runuser-common.inc
60include whitelist-usr-share-common.inc
61include whitelist-var-common.inc
62
63# Streamlink+VLC doesn't seem to close properly with apparmor enabled.
64#apparmor
65caps.drop all
66netfilter
67nodvd
68nogroups
69nonewprivs
70noprinters
71noroot
72notv
73nou2f
74# Netlink is required for streamlink integration.
75protocol unix,inet,inet6,netlink
76# Seccomp may break browser integration.
77seccomp
78seccomp.block-secondary
79tracelog
80
81disable-mnt
82# Add more private-bin lines for browsers or video players to chatterino.local if wanted.
83private-bin chatterino,pgrep
84private-bin ffmpeg,python*,streamlink
85private-bin cvlc,nvlc,qvlc,rvlc,svlc,vlc
86private-bin env,mpv,python*,waf,youtube-dl,yt-dlp
87# private-cache may cause issues with mpv (see #2838)
88private-cache
89private-dev
90private-etc alsa,alternatives,asound.conf,ca-certificates,dbus-1,fonts,hostname,hosts,kde4rc,kde5rc,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,nvidia,passwd,pulse,resolv.conf,rpc,services,ssl,Trolltech.conf,X11
91private-opt none
92private-srv none
93private-tmp
94
95dbus-user filter
96dbus-user.own com.chatterino.*
97# Session Bus Policy from flatpak
98dbus-user.talk com.canonical.AppMenu.Registrar
99dbus-user.talk org.kde.kconfig.notify
100dbus-user.talk org.kde.KGlobalSettings
101dbus-user.talk org.freedesktop.Flatpak
102# Allow notifications.
103dbus-user.talk org.freedesktop.Notifications
104# For media player integration.
105dbus-user.talk org.freedesktop.ScreenSaver
106?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
107dbus-user.talk org.mpris.MediaPlayer2.Player
108dbus-system none
109
110# Prevents browsers/players from lingering after Chatterino is closed.
111#deterministic-shutdown
112# Add to chatterino.local to force Qt to use its wayland QPA plugin.
113#env QT_QPA_PLATFORM=wayland
114# memory-deny-write-execute may break streamlink and browser integration.
115#memory-deny-write-execute
116restrict-namespaces
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index 152263f04..15169f983 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -130,6 +130,7 @@ catfish
130cawbird 130cawbird
131celluloid 131celluloid
132chafa 132chafa
133chatterino
133checkbashisms 134checkbashisms
134cheese 135cheese
135cherrytree 136cherrytree