aboutsummaryrefslogtreecommitdiffstats
path: root/etc/ktorrent.profile
blob: 99e185ce3007c93ca65d41a6cead95518243f403 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Firejail profile for ktorrent
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/ktorrent.local
# Persistent global definitions
include /etc/firejail/globals.local

noblacklist ~/.config/ktorrentrc
noblacklist ~/.kde/share/apps/ktorrent
noblacklist ~/.kde/share/config/ktorrentrc
noblacklist ~/.kde4/share/apps/ktorrent
noblacklist ~/.kde4/share/config/ktorrentrc
noblacklist ~/.local/share/ktorrent

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 ~/.kde/share/apps/ktorrent
mkdir ~/.kde4/share/apps/ktorrent
mkdir ~/.local/share/ktorrent
mkfile ~/.config/ktorrentrc
mkfile ~/.kde/share/config/ktorrentrc
mkfile ~/.kde4/share/config/ktorrentrc
whitelist  ${DOWNLOADS}
whitelist ~/.config/ktorrentrc
whitelist ~/.kde/share/apps/ktorrent
whitelist ~/.kde/share/config/ktorrentrc
whitelist ~/.kde4/share/apps/ktorrent
whitelist ~/.kde4/share/config/ktorrentrc
whitelist ~/.local/share/ktorrent
include /etc/firejail/whitelist-common.inc
include /etc/firejail/whitelist-var-common.inc

caps.drop all
netfilter
no3d
nodvd
nogroups
nonewprivs
noroot
nosound
notv
novideo
protocol unix,inet,inet6
seccomp
shell none

private-bin ktorrent
private-dev
# private-lib - problems on Arch
private-tmp

# memory-deny-write-execute
noexec ${HOME}
noexec /tmp