aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-03-13 13:27:26 -0400
committerLibravatar GitHub <noreply@github.com>2023-03-13 13:27:26 -0400
commit318b0f66320f69eee63996bb49b4994e2e0bc511 (patch)
tree9e4b701da707b599b3058aa408d0f8b76eb27276 /etc
parentMerge branch 'master' of ssh://github.com/netblue30/firejail (diff)
parentrefactor yt-dlp (diff)
downloadfirejail-318b0f66320f69eee63996bb49b4994e2e0bc511.tar.gz
firejail-318b0f66320f69eee63996bb49b4994e2e0bc511.tar.zst
firejail-318b0f66320f69eee63996bb49b4994e2e0bc511.zip
Merge pull request #5715 from pirate486743186/yt-dlp
refactor yt-dlp
Diffstat (limited to 'etc')
-rw-r--r--etc/profile-a-l/gallery-dl.profile2
-rw-r--r--etc/profile-m-z/youtube-dl.profile58
-rw-r--r--etc/profile-m-z/yt-dlp.profile68
3 files changed, 69 insertions, 59 deletions
diff --git a/etc/profile-a-l/gallery-dl.profile b/etc/profile-a-l/gallery-dl.profile
index 9c8200dc4..9643820e7 100644
--- a/etc/profile-a-l/gallery-dl.profile
+++ b/etc/profile-a-l/gallery-dl.profile
@@ -15,4 +15,4 @@ private-bin gallery-dl
15private-etc gallery-dl.conf 15private-etc gallery-dl.conf
16 16
17# Redirect 17# Redirect
18include youtube-dl.profile 18include yt-dlp.profile
diff --git a/etc/profile-m-z/youtube-dl.profile b/etc/profile-m-z/youtube-dl.profile
index 8376b4989..9e81d745d 100644
--- a/etc/profile-m-z/youtube-dl.profile
+++ b/etc/profile-m-z/youtube-dl.profile
@@ -5,63 +5,17 @@ quiet
5# Persistent local customizations 5# Persistent local customizations
6include youtube-dl.local 6include youtube-dl.local
7# Persistent global definitions 7# Persistent global definitions
8include globals.local 8# added by included profile
9 9#include globals.local
10# breaks when installed under ${HOME} via `pip install --user` (see #2833)
11ignore noexec ${HOME}
12 10
13noblacklist ${HOME}/.cache/youtube-dl 11noblacklist ${HOME}/.cache/youtube-dl
14noblacklist ${HOME}/.config/youtube-dl 12noblacklist ${HOME}/.config/youtube-dl
15noblacklist ${HOME}/.netrc
16noblacklist ${MUSIC}
17noblacklist ${VIDEOS}
18 13
19# Allow python (blacklisted by disable-interpreters.inc) 14# Allow python (blacklisted by disable-interpreters.inc)
20include allow-python2.inc 15include allow-python2.inc
21include allow-python3.inc
22
23blacklist /tmp/.X11-unix
24blacklist ${RUNUSER}
25
26include disable-common.inc
27include disable-devel.inc
28include disable-exec.inc
29include disable-interpreters.inc
30include disable-programs.inc
31include disable-shell.inc
32include disable-xdg.inc
33
34include whitelist-usr-share-common.inc
35include whitelist-var-common.inc
36
37apparmor
38caps.drop all
39ipc-namespace
40machine-id
41netfilter
42no3d
43nodvd
44nogroups
45noinput
46nonewprivs
47noroot
48nosound
49notv
50nou2f
51novideo
52protocol unix,inet,inet6
53seccomp
54seccomp.block-secondary
55tracelog
56
57private-bin env,ffmpeg,python*,youtube-dl
58private-cache
59private-dev
60private-etc @tls-ca,mime.types,youtube-dl.conf
61private-tmp
62 16
63dbus-user none 17private-bin youtube-dl
64dbus-system none 18private-etc youtube-dl.conf
65 19
66#memory-deny-write-execute - breaks on Arch (see issue #1803) 20# Redirect
67restrict-namespaces 21include yt-dlp.profile
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