aboutsummaryrefslogtreecommitdiffstats
path: root/etc/qbittorrent.profile
blob: 025a6fa61d1b841e65f2d508e70ab7fe5f6378c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Firejail profile for qbittorrent
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/qbittorrent.local
# Persistent global definitions
include /etc/firejail/globals.local

noblacklist ~/.cache/qBittorrent
noblacklist ~/.config/qBittorrent
noblacklist ~/.config/qBittorrentrc
noblacklist ~/.config/qt5ct

include /etc/firejail/disable-common.inc
include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-programs.inc

mkdir ~/.cache/qBittorrent
mkdir ~/.config/qBittorrent
mkdir ~/.local/share/data/qBittorrent
whitelist  ${DOWNLOADS}
whitelist ~/.cache/qBittorrent
whitelist ~/.config/qBittorrent
whitelist ~/.config/qBittorrentrc
whitelist ~/.config/qt5ct
whitelist ~/.local/share/data/qBittorrent
include /etc/firejail/whitelist-common.inc

caps.drop all
machine-id
netfilter
nogroups
nonewprivs
noroot
nosound
protocol unix,inet,inet6,netlink
seccomp
# shell none

# private-bin qbittorrent
private-dev
# private-etc X11,fonts,xdg,resolv.conf
private-tmp