| 1 |
# Firejail profile for ktorrent |
| 2 |
# Description: BitTorrent client based on the KDE platform |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include ktorrent.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
noblacklist ${HOME}/.config/ktorrentrc |
| 10 |
noblacklist ${HOME}/.kde/share/apps/ktorrent |
| 11 |
noblacklist ${HOME}/.kde/share/config/ktorrentrc |
| 12 |
noblacklist ${HOME}/.kde4/share/apps/ktorrent |
| 13 |
noblacklist ${HOME}/.kde4/share/config/ktorrentrc |
| 14 |
noblacklist ${HOME}/.local/share/ktorrent |
| 15 |
noblacklist ${HOME}/.local/share/kxmlgui5/ktorrent |
| 16 |
|
| 17 |
include disable-common.inc |
| 18 |
include disable-devel.inc |
| 19 |
include disable-exec.inc |
| 20 |
include disable-interpreters.inc |
| 21 |
include disable-programs.inc |
| 22 |
include disable-shell.inc |
| 23 |
|
| 24 |
# Legacy paths |
| 25 |
#mkdir ${HOME}/.kde/share/apps/ktorrent |
| 26 |
#mkdir ${HOME}/.kde/share/config |
| 27 |
#mkdir ${HOME}/.kde4/share/apps/ktorrent |
| 28 |
#mkdir ${HOME}/.kde4/share/config |
| 29 |
#mkfile ${HOME}/.kde/share/config/ktorrentrc |
| 30 |
#mkfile ${HOME}/.kde4/share/config/ktorrentrc |
| 31 |
|
| 32 |
mkdir ${HOME}/.local/share/ktorrent |
| 33 |
mkdir ${HOME}/.local/share/kxmlgui5/ktorrent |
| 34 |
mkfile ${HOME}/.config/ktorrentrc |
| 35 |
whitelist ${DOWNLOADS} |
| 36 |
whitelist ${HOME}/.config/ktorrentrc |
| 37 |
whitelist ${HOME}/.kde/share/apps/ktorrent |
| 38 |
whitelist ${HOME}/.kde/share/config/ktorrentrc |
| 39 |
whitelist ${HOME}/.kde4/share/apps/ktorrent |
| 40 |
whitelist ${HOME}/.kde4/share/config/ktorrentrc |
| 41 |
whitelist ${HOME}/.local/share/ktorrent |
| 42 |
whitelist ${HOME}/.local/share/kxmlgui5/ktorrent |
| 43 |
include whitelist-common.inc |
| 44 |
include whitelist-run-common.inc |
| 45 |
include whitelist-var-common.inc |
| 46 |
|
| 47 |
caps.drop all |
| 48 |
machine-id |
| 49 |
netfilter |
| 50 |
no3d |
| 51 |
nodvd |
| 52 |
nogroups |
| 53 |
noinput |
| 54 |
nonewprivs |
| 55 |
noroot |
| 56 |
nosound |
| 57 |
notv |
| 58 |
nou2f |
| 59 |
novideo |
| 60 |
protocol unix,inet,inet6,netlink |
| 61 |
seccomp |
| 62 |
|
| 63 |
private-bin kbuildsycoca4,kdeinit4,ktmagnetdownloader,ktorrent,ktupnptest |
| 64 |
private-dev |
| 65 |
#private-lib # problems on Arch |
| 66 |
private-tmp |
| 67 |
|
| 68 |
deterministic-shutdown |
| 69 |
#memory-deny-write-execute |
| 70 |
restrict-namespaces |