-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathusr.local.bin.youtubedl-gui
132 lines (105 loc) · 3.51 KB
/
usr.local.bin.youtubedl-gui
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# vim:syntax=apparmor
#include <tunables/global>
# adjust in local
@{YTDL_DIRS} = @{HOME}/Downloads /tmp/ytdl
@{YTDL_BINS} = /usr/{,local/}bin/{youtube-dl,yt-dlp}*
#include if exists <local/tunables/3rd/usr.local.bin.youtubedl-gui>
profile youtubedl_gui /usr/{,local/}bin/youtubedl-gui {
/usr/{,local/}bin/youtubedl-gui r,
#include <abstractions/base>
#include <abstractions/gnome>
#include <abstractions/ibus>
#include <abstractions/dconf>
#include <abstractions/dbus-accessibility-strict>
#include <abstractions/dbus-session-strict>
#include <abstractions/qt5>
#include <abstractions/private-files>
#include <abstractions/private-files-strict>
# #include <abstractions/nameservice>
#include <abstractions/3rd/nameservice-strict>
#include if exists <abstractions/3rd/file-chooser_ytdlgui>
#include if exists <abstractions/3rd/dbus-overwrite_ytdlgui>
@{YTDL_DIRS}/** rwk,
# qt5-settings-write-deny (modification)
deny owner @{HOME}/.config/QtProject.conf* wkl,
deny owner @{HOME}/.config/#[0-9]*[0-9] wkl,
# or allow write access
# #include <abstractions/qt5-settings-write>
deny @{PROC}/sys/kernel/random/boot_id r,
deny /usr/share/nvidia/nvidia-application-profiles-* r,
/usr/libexec/coreutils/libstdbuf.so mr,
owner @{HOME}/.config/ytdl-gui/{,**} rwk,
owner @{PROC}/@{pid}/{cmdline,comm} r,
/dev/tty rw,
owner /tmp/ytdl_prg w,
owner /tmp/ytdl_stderr w,
owner /{,var/}run/user/*/dconf/user w,
/usr/share/hwdata/pnp.ids r,
/usr/bin/stdbuf rix,
/{,usr/}bin/grep rix,
/{,usr/}bin/bash rix,
@{YTDL_BINS} rPx -> youtube_dl,
dbus send
bus="session"
path="/org/a11y/bus"
interface="org.freedesktop.DBus.Properties"
member="Get"
peer=(name="org.a11y.Bus"),
dbus send
bus="accessibility"
path="/org/a11y/atspi/accessible/root"
interface="org.a11y.atspi.Socket"
member="Embed"
peer=(name="org.a11y.atspi.Registry"),
dbus receive
bus="accessibility"
path="/org/a11y/atspi/accessible/root"
interface="org.freedesktop.DBus.Properties"
member="Set"
peer=(name=":*"),
dbus send
bus="accessibility"
path="/org/a11y/atspi/registry/deviceeventcontroller"
interface="org.a11y.atspi.DeviceEventController"
member="{GetKeystrokeListeners,GetDeviceEventListeners}"
peer=(name="org.a11y.atspi.Registry"),
dbus send
bus="accessibility"
path="/org/a11y/atspi/registry"
interface="org.a11y.atspi.Registry"
member="GetRegisteredEvents"
peer=(name="org.a11y.atspi.Registry"),
dbus receive
bus="accessibility"
path="/org/a11y/atspi/registry"
interface="org.a11y.atspi.Registry"
member="EventListenerDeregistered"
peer=(name=":*"),
dbus send
bus="session"
path="/org/gtk/vfs/mounttracker"
interface="org.gtk.vfs.MountTracker"
member="ListMountableInfo"
peer=(name=":*"),
# Ubuntu
owner @{HOME}/.cache/mesa_shader_cache/index rw,
dbus send
bus="session"
path="/org/a11y/bus"
interface="org.a11y.Bus"
member="GetAddress"
peer=(name="org.a11y.Bus"),
dbus send
bus="session"
path="/org/gtk/Settings"
interface="org.freedesktop.DBus.Properties"
member="GetAll"
peer=(name=":*"),
# save to smb shares, etc
# network tcp,
# network udp,
# or deny network access by itself
deny network tcp,
deny network udp,
#include if exists <local/usr.local.bin.youtubedl-gui>
}