-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopt.telegram.Telegram
52 lines (42 loc) · 1.43 KB
/
opt.telegram.Telegram
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
# vim:syntax=apparmor
# Author: Filippe LeMarchand <gasinvein@gmail.com>
#include <tunables/global>
/home/*/.local/bin/Telegram {
#include <abstractions/base>
#include <abstractions/fonts>
#include <abstractions/audio>
#include <abstractions/kde>
#include <abstractions/gnome>
#include <abstractions/dconf>
#include <abstractions/dbus-session>
#include <abstractions/nameservice>
#include <abstractions/user-download>
#include <abstractions/user-xdg-dirs>
#include <abstractions/freedesktop.org>
#include <abstractions/private-files-strict>
/etc/pulse/client.conf.d/ r,
/etc/pulse/client.conf.d/* r,
/usr/share/{fonts-config,cantarell-fonts,stix-fonts}/conf.avail/*.conf r,
# crash on file dialog open
/usr/share/glib-2.0/schemas/* r,
/etc/xdg/kdeglobals r,
owner @{HOME}/.config/kdeglobals r,
owner /{var/,}run/user/*/dconf/user rw,
/usr/bin/notify-send rPux,
owner @{HOME}/.local/bin/Telegram rwix,
owner @{HOME}/.local/bin/Updater rwix,
owner @{HOME}/.local/share/applications/telegramdesktop.desktop rw,
owner @{HOME}/.kde4/share/kde4/services/tg.protocol rw,
owner @{HOME}/.TelegramDesktop/ rw,
owner @{HOME}/.TelegramDesktop/** rwlk,
owner @{HOME}/.TelegramDesktop/Telegram rwix,
owner @{HOME}/.TelegramDesktop/Updater rwix,
/usr/bin/xdg-open rPUx,
/usr/bin/xdg-mime rPUx,
@{PROC}/@{pid}/cmdline r,
/bin/bash rix,
/dev/tty rw,
/usr/bin/desktop-file-install rix,
/usr/bin/gconftool-2 rix,
owner /media/** rw,
}