diff options
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r-- | etc/profile-m-z/mpv.profile | 14 | ||||
-rw-r--r-- | etc/profile-m-z/porn-cli.profile | 14 |
2 files changed, 22 insertions, 6 deletions
diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile index c9706999a..9dcc9dec3 100644 --- a/etc/profile-m-z/mpv.profile +++ b/etc/profile-m-z/mpv.profile | |||
@@ -11,13 +11,13 @@ include globals.local | |||
11 | # edit ~/.config/mpv/foobar.conf: | 11 | # edit ~/.config/mpv/foobar.conf: |
12 | # screenshot-directory=~/Pictures | 12 | # screenshot-directory=~/Pictures |
13 | 13 | ||
14 | # Mpv has a powerful lua-API, some off these lua-scripts interact | 14 | # mpv has a powerful Lua API and some of the Lua scripts interact with |
15 | # with external resources which are blocked by firejail. In such cases | 15 | # external resources which are blocked by firejail. In such cases you need to |
16 | # you need to allow these resources by | 16 | # allow these resources by: |
17 | # - adding additional binaries to private-bin | 17 | # - noblacklisting additional paths |
18 | # - whitelisting additional paths | 18 | # - whitelisting additional paths |
19 | # - noblacklisting paths | 19 | # - adding additional binaries to private-bin |
20 | # - weaking the dbus-policy | 20 | # - changing/weakening the D-Bus policy |
21 | # - ... | 21 | # - ... |
22 | # | 22 | # |
23 | # Often these scripts require a shell: | 23 | # Often these scripts require a shell: |
@@ -79,6 +79,8 @@ seccomp | |||
79 | seccomp.block-secondary | 79 | seccomp.block-secondary |
80 | tracelog | 80 | tracelog |
81 | 81 | ||
82 | # mpv links to libluajit, so no need to reference "lua*" in private-bin: | ||
83 | # https://github.com/netblue30/firejail/pull/5711#discussion_r1125622615 | ||
82 | private-bin env,mpv,python*,waf,youtube-dl,yt-dlp | 84 | private-bin env,mpv,python*,waf,youtube-dl,yt-dlp |
83 | # private-cache causes slow OSD, see #2838 | 85 | # private-cache causes slow OSD, see #2838 |
84 | #private-cache | 86 | #private-cache |
diff --git a/etc/profile-m-z/porn-cli.profile b/etc/profile-m-z/porn-cli.profile new file mode 100644 index 000000000..f33ff439c --- /dev/null +++ b/etc/profile-m-z/porn-cli.profile | |||
@@ -0,0 +1,14 @@ | |||
1 | # Firejail profile for porn-cli | ||
2 | # Description: Python script for watching porn via the terminal | ||
3 | # This file is overwritten after every install/update | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include porn-cli.local | ||
7 | # Persistent global definitions | ||
8 | # added by included profile | ||
9 | #include globals.local | ||
10 | |||
11 | private-bin porn-cli | ||
12 | |||
13 | # Redirect | ||
14 | include mov-cli.profile | ||