mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3776] ffmpeg profile breaks jellyfin transcoding #2380
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2380
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @setpill on GitHub (Nov 26, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3776
Bug and expected behavior
Jellyfin uses ffmpeg under the hood to transcode video files. It writes (temporary) output files to
/var/lib/jellyfin/transcodes/. However, the firejail ffmpeg profile disallows this, resulting in log entries likeNo profile and disabling firejail
I was not able to change the way jellyfin calls ffmpeg, however I removed the
/usr/local/bin/ffmpegsymlink to/usr/bin/firejail, after which transcodes started working again.Reproduce
Steps to reproduce the behavior:
/var/lib/jellyfin/logEnvironment
lsb_release -a,screenfetchorcat /etc/os-release)firejail --version) exclusive or used git commit (git rev-parse HEAD)Additional context
Other context about the problem like related errors to understand the problem.
Checklist
https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEis used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAMto get english error-messages.@SkewedZeppelin commented on GitHub (Nov 26, 2020):
Can you add the following to a new file
/etc/firejail/ffmpeg.local:Also it seems kind of asinine to write such temporary files to disk?
Longterm maybe mount a tmpfs over that path?
No need to wear out your drive.
Aside: TIL you can't add markdown to email responses???
@setpill commented on GitHub (Nov 26, 2020):
Can confirm that fixes it. Even just
writable-varis enough (without thewhitelist). Does it make sense to restrictffmpegthis way by default? It's a utility commonly used by other applications.@rusty-snake commented on GitHub (Nov 27, 2020):
curl, pandoc, tar, unzip, ... are not includes in firecfg.config by default because they frequently break programs calling them. IMHO we should exclude it too. If you call it in a terminal you can always prefix it with
firejailand if a program calls it, it's better to firejail this program.@SkewedZeppelin commented on GitHub (Nov 27, 2020):
agreed
but for services it should be restricted using systemd's built-in mechanisms.
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Sandboxing
@setpill commented on GitHub (Nov 27, 2020):
So if I understand it correctly, the solution to this issue is to remove
ffmpeg(and maybeffmpeg-thumbnailer) fromsrc/firecfg/firecfg.config?