mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3938] vlc: no video playback (seccomp) #2461
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#2461
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 @MrFrank17 on GitHub (Jan 31, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3938
Hi,
VLC is no showing videos with the standard profile (using Kubuntu 20.10).
If I start it with
firejail --noprofile vlceverything is fine as expected.Starting vlc normally,
journalctl --boot --pager-end --followgives me that:audit[615706]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined pid=615706 comm="vlc" exe="/usr/local/bin/vlc" sig=31 arch=c000003e syscall=312 compat=0 ip=0x7f476f3c667d code=0x0
Jan 31 16:13:50 frank-laptop kernel: audit: type=1326 audit(1612106030.242:57): auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined pid=615706 comm="vlc" exe="/usr/local/bin/vlc" sig=31 arch=c000003e syscall=312 compat=0 ip=0x7f476f3c667d code=0x0
Jan 31 16:13:55 frank-laptop firejail[620322]: blacklist violation - sandbox 1853, exe kioslave5, syscall open64, path /proc/sys/kernel/core_pattern
Jan 31 16:13:55 frank-laptop firejail[620324]: blacklist violation - sandbox 1853, exe kioslave5, syscall open64, path /proc/sys/kernel/core_pattern
Any ideas?
Thanks
Frank
@rusty-snake commented on GitHub (Jan 31, 2021):
Duplicate of #3219, replace
seccompwithseccomp !kcmpin vlc.profile.@MrFrank17 commented on GitHub (Jan 31, 2021):
Thanks, playback works now!
Something minor: it seems access to some KDE configuration files is still blocked (eg I am using a dark theme and without firejail vlc adapts to that style. Now it is shown in light colors. Also the filebrowser dialog has not all of my individual settings).The journal log shows nothing meaningful ...
@rusty-snake commented on GitHub (Jan 31, 2021):
vlc is a whitelisting profile, if you want to play files stored somewhere else then Desktop/Downloads/Music/Pictures/Videos you must add a
whitelist ${HOME}/path/to/file_or_dirtowhitelist-player-common.local. Files which store settings like for your Qt-theme should bewhitelisted (and mayberead-onlyed) inwhitelist-common.inc, looks like there are some paths missing. Do you know where KDE stores this?@MrFrank17 commented on GitHub (Jan 31, 2021):
I used
vlc.local, but good to know that there are other ways as well.Sorry, no idea how KDE handles that (or which folders are used).
I hoped to see a blacklist (or in this case a whitelist?) violation in the journal output.
@rusty-snake commented on GitHub (Feb 1, 2021):
Will not happen for missing
whitelist. However, you canfirejail --build=~/vlc.profile vlcand then compare all thewhitelist ${HOME}/....@MrFrank17 commented on GitHub (Feb 1, 2021):
Oh, wasn't aware about that possibility!
Was still a lot to look up - I added this in vlc.local.
Note these are the additional ones, have not checked if they all really needed. Maybe you can give me a hint ...
include /etc/firejail/whitelist-common.inc
include whitelist-usr-share-common.inc
whitelist ${HOME}/.local/share/RecentDocuments
whitelist ${HOME}/.local/share/kioslave5/icons/hicolor
whitelist ${HOME}/.cache/thumbnails
whitelist ${HOME}/.config/pulse
whitelist ${HOME}/.pulse-cookie
whitelist ${HOME}/.cache/thumbnails
whitelist ${HOME}/.Xdefaults-frank-laptop
whitelist ${HOME}/.cache/mesa_shader_cache
whitelist /usr/share/kioslave5
whitelist /usr/share/texmf
whitelist /usr/share/vlc
whitelist /usr/share/kubuntu-default-settings
To have it fully functional I commented also out all the disable*.inc in vlc.profile. That's for sure too much, but I did not had the time to look into that.
@rusty-snake commented on GitHub (Feb 2, 2021):
${HOME}/.local/share/RecentDocuments,${HOME}/.cache/thumbnails: what the name says${HOME}/.config/pulse,${HOME}/.pulse-cookie: pulse audio${HOME}/.cache/mesa_shader_cache: just a cache/usr/share: system-wide, not relevant for theme change by user@MrFrank17 commented on GitHub (Feb 2, 2021):
Ok, I works now!
The solution is surprisingly simple after all I have tried out - I added to my local profile:
noblacklist ${DOCUMENTS}noblacklist ${PICTURES}Not sure why this enough, but well, it works ...