Debian Codegraph @

etc/profile-a-l/chatterino.profile

raw
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
5 include chatterino.local
6 # Persistent global definitions
7 include globals.local
8
9 # To upload images, whitelist/noblacklist their path in chatterino.local.
10 #whitelist ${PICTURES}
11 # For custom notification sounds, whitelist/noblacklist their path in chatterino.local.
12 #whitelist ${MUSIC}
13
14 # Also allow access to mpv/vlc, they're usable via streamlink.
15 noblacklist ${HOME}/.cache/mpv
16 noblacklist ${HOME}/.config/mpv
17 noblacklist ${HOME}/.config/pulse
18 noblacklist ${HOME}/.config/vlc
19 noblacklist ${HOME}/.local/share/chatterino
20 noblacklist ${HOME}/.local/share/vlc
21 noblacklist ${HOME}/.local/state/mpv
22
23 # Lua is required by mpv.
24 # Allow lua (blacklisted by disable-interpreters.inc)
25 include allow-lua.inc
26
27 # Python is required for streamlink integration.
28 # Allow python (blacklisted by disable-interpreters.inc)
29 include allow-python3.inc
30
31 include disable-common.inc
32 include disable-devel.inc
33 include disable-exec.inc
34 include disable-interpreters.inc
35 include disable-proc.inc
36 include disable-programs.inc
37 include disable-xdg.inc
38
39 # Also allow read-only access to mpv/VLC, they're usable via streamlink.
40 mkdir ${HOME}/.local/share/chatterino
41 # VLC preferences will fail to save with read-only set.
42 whitelist ${HOME}/.local/share/chatterino
43 whitelist-ro ${HOME}/.config/mpv
44 whitelist-ro ${HOME}/.config/pulse
45 whitelist-ro ${HOME}/.config/vlc
46 whitelist-ro ${HOME}/.local/share/vlc
47 whitelist-ro /usr/share/lua*
48 whitelist-ro /usr/share/mpv
49 whitelist-ro /usr/share/vlc
50 include whitelist-common.inc
51 include whitelist-run-common.inc
52 include whitelist-runuser-common.inc
53 include whitelist-usr-share-common.inc
54 include whitelist-var-common.inc
55
56 # Streamlink+VLC doesn't seem to close properly with apparmor enabled.
57 #apparmor
58 caps.drop all
59 netfilter
60 nodvd
61 nogroups
62 nonewprivs
63 noprinters
64 noroot
65 notv
66 nou2f
67 # Netlink is required for streamlink integration.
68 protocol unix,inet,inet6,netlink
69 # Seccomp may break browser integration.
70 seccomp
71 seccomp.block-secondary
72 tracelog
73
74 disable-mnt
75 # Add more private-bin lines for browsers or video players to chatterino.local if wanted.
76 private-bin chatterino,cvlc,env,ffmpeg,mpv,nvlc,pgrep,python*,qvlc,rvlc,streamlink,svlc,vlc
77 # private-cache may cause issues with mpv (see #2838)
78 private-cache
79 private-dev
80 private-etc @tls-ca,@x11,dbus-1,rpc,services
81 private-srv none
82 private-tmp
83
84 dbus-user filter
85 dbus-user.own com.chatterino.*
86 # Allow notifications.
87 dbus-user.talk org.freedesktop.Notifications
88 # For media player integration.
89 dbus-user.talk org.freedesktop.ScreenSaver
90 ?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
91 dbus-user.own org.mpris.MediaPlayer2.chatterino
92 dbus-user.talk org.mpris.MediaPlayer2.Player
93 dbus-system none
94
95 # Prevents browsers/players from lingering after Chatterino is closed.
96 #deterministic-shutdown
97 # memory-deny-write-execute may break streamlink and browser integration.
98 #memory-deny-write-execute
99 restrict-namespaces