aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z/yt-dlp.profile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/profile-m-z/yt-dlp.profile')
-rw-r--r--etc/profile-m-z/yt-dlp.profile68
1 files changed, 62 insertions, 6 deletions
diff --git a/etc/profile-m-z/yt-dlp.profile b/etc/profile-m-z/yt-dlp.profile
index 49d4b3b56..97f9e620a 100644
--- a/etc/profile-m-z/yt-dlp.profile
+++ b/etc/profile-m-z/yt-dlp.profile
@@ -5,17 +5,73 @@ quiet
5# Persistent local customizations 5# Persistent local customizations
6include yt-dlp.local 6include yt-dlp.local
7# Persistent global definitions 7# Persistent global definitions
8# added by included profile 8include globals.local
9#include globals.local 9
10# If you installed via pip under ${HOME}
11# add 'ignore noexec ${HOME}' in yt-dlp.local.
12# AppArmor needs to allow it too,
13# add 'ignore apparmor' in yt-dlp.local
14# OR in /etc/apparmor.d/local/firejail-default add:
15# 'owner @HOME/.local/bin/** ix,'
16# 'owner @HOME/.local/lib/python*/** ix,'
17# then run the command
18# 'sudo apparmor_parser -r /etc/apparmor.d/firejail-default'
10 19
11noblacklist ${HOME}/.cache/yt-dlp 20noblacklist ${HOME}/.cache/yt-dlp
12noblacklist ${HOME}/.config/yt-dlp 21noblacklist ${HOME}/.config/yt-dlp
13noblacklist ${HOME}/.config/yt-dlp.conf 22noblacklist ${HOME}/.config/yt-dlp.conf
14noblacklist ${HOME}/yt-dlp.conf 23noblacklist ${HOME}/yt-dlp.conf
15noblacklist ${HOME}/yt-dlp.conf.txt 24noblacklist ${HOME}/yt-dlp.conf.txt
25noblacklist ${HOME}/.netrc
26noblacklist ${MUSIC}
27noblacklist ${VIDEOS}
28
29# Allow python (blacklisted by disable-interpreters.inc)
30include allow-python3.inc
31
32blacklist /tmp/.X11-unix
33blacklist ${RUNUSER}
34
35include disable-common.inc
36include disable-devel.inc
37include disable-exec.inc
38include disable-interpreters.inc
39include disable-programs.inc
40include disable-shell.inc
41include disable-xdg.inc
42
43include whitelist-usr-share-common.inc
44include whitelist-var-common.inc
45
46apparmor
47caps.drop all
48ipc-namespace
49machine-id
50netfilter
51no3d
52nodvd
53nogroups
54noinput
55nonewprivs
56noroot
57nosound
58notv
59nou2f
60novideo
61protocol unix,inet,inet6
62seccomp
63seccomp.block-secondary
64tracelog
65
66private-bin env,ffmpeg,ffprobe,python*,yt-dlp
67private-cache
68private-dev
69private-etc @tls-ca,mime.types,yt-dlp.conf
70private-tmp
71
72dbus-user none
73dbus-system none
16 74
17private-bin ffprobe,yt-dlp 75memory-deny-write-execute
18private-etc yt-dlp.conf
19 76
20# Redirect 77restrict-namespaces
21include youtube-dl.profile