-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusr.bin.qbittorrent
76 lines (63 loc) · 2.04 KB
/
usr.bin.qbittorrent
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Last Modified: Wed Sep 2 15:28:19 2015
# vim:syntax=apparmor
# ------------------------------------------------------------------
#
# Copyright (C) 2015 Mikhail Morfikov
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------
#include <tunables/global>
/usr/bin/qbittorrent {
#include <abstractions/base>
#include <abstractions/ubuntu-helpers>
#include <abstractions/ubuntu-bittorrent-clients>
#include <abstractions/python>
#include <abstractions/fonts>
#include <abstractions/dbus-session>
#include <abstractions/user-download>
#include <abstractions/freedesktop.org>
#include <abstractions/gnome>
#include <abstractions/kde>
#include <abstractions/kde5>
#include <abstractions/openssl>
#include <abstractions/nameservice>
#include <abstractions/user-tmp>
#include <abstractions/private-files-strict>
# Qbittorrent files
/usr/bin/qbittorrent mr,
# Qbittorrent home dirs
owner @{HOME}/.config/qBittorrentrc r,
owner @{HOME}/.config/qBittorrent/** rwk,
owner @{HOME}/.local/share/data/qBittorrent/** rw,
owner @{HOME}/.config/qBittorrentrc.lock rwk,
# Cache dir
owner /tmp/.qBittorrent/ rw,
owner /tmp/.qBittorrent/** rw,
owner @{HOME}/.cache/qBittorrent/ rw,
owner @{HOME}/.cache/qBittorrent/** rw,
# GeoIP settings
/usr/share/GeoIP/GeoIP.dat r,
# Adding torrents
owner @{HOME}/.config/QtProject.conf rw,
owner @{HOME}/.config/QtProject.conf.* rw,
owner @{HOME}/.config/QtProject.conf.lock rwk,
/tmp/.X0-lock r,
# Proc files
owner @{PROC}/@{pid}/cmdline r,
owner @{PROC}/@{pid}/mounts r,
# kio socket
owner /{var/,}run/user/*/qBittorrent*.slave-socket rw,
#
/dev/tty rw,
/usr/share/icons/**/index.theme k,
/usr/share/fonts-config/conf.avail/* r,
# Launch external apps
/usr/bin/python* rix,
/usr/lib*/python*/lib-dynload/*.so mr,
/usr/bin/xdg-open rPUx,
/usr/bin/xdg-mime rPUx,
#include <local/qbittorrent>
}