[GH-ISSUE #3351] Can not use custom mplayer profile without whitelisting directory of each video file #2103

Closed
opened 2026-05-05 08:46:53 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @novoid on GitHub (Apr 13, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3351

Bug Description

I can not play files using mplayer unless adding the directory of the video file as whitelisted directory.
I can not whitelist any directory so that I may play a video file in any ($HOME) (sub-)directory.

This is my /home/vk/.config/firejail/mplayer.profile showing the error behavior:

noblacklist ${HOME}/.mplayer                                                                                                                                                                                                                                                              
noblacklist /etc/mplayer/                                                                                                                                                                                                                                                                 
noblacklist /run/user/1000/pulse
net none

Behavior change on disabling firejail

vk@host ~2d % firejail --noprofile mplayer video.mp4 
Parent pid 9825, child pid 9826
Error: /home/vk/.config is a symbolic link
Error: proc 9825 cannot sync with peer: unexpected EOF
Peer 9826 unexpectedly exited with status 1
1 vk@host ~2d %

To Reproduce

mplayer profile:

noblacklist ${HOME}/.mplayer                                                                                                                                                                                                                                                              
noblacklist /etc/mplayer/                                                                                                                                                                                                                                                                 
noblacklist /run/user/1000/pulse
net none
  1. having the mplayer profile as above
  2. invoking /usr/bin/firejail --debug --profile=/home/vk/.config/firejail/mplayer.profile mplayer video.mp4
  3. I get error
Error: /home/vk/.config is a symbolic link
Error: proc 7521 cannot sync with peer: unexpected EOF
Peer 7522 unexpectedly exited with status 1

For detailed debug output, see http://paste.grml.org/hidden/ecc96efa/

Expected behavior

Expected behavior would be that I may play back video files without whitelisting the directory of that video file.

Workaround

mplayer profile:

noblacklist ${HOME}/.mplayer                                                                                                                                                                                                                                                              
noblacklist /etc/mplayer/                                                                                                                                                                                                                                                                 
noblacklist /run/user/1000/pulse

# Additional line fixing the issue with this workaround: this is the directory of "video.mp4"
whitelist ${HOME}/tmp/2del/

net none
  1. having the mplayer profile as above
  2. invoking /usr/bin/firejail --debug --profile=/home/vk/.config/firejail/mplayer.profile mplayer video.mp4
  3. mplayer does play back video file

Detailed debug output: http://paste.grml.org/hidden/d0b2dae6/

Desktop

  • Linux distribution and version: Linux Debian 10 buster
  • Firejail version: 0.9.58.2

Additional context

I freshly upgraded from Debian oldstable yesterday. Before the upgrade, my custom profile without the additional whitelist did work fine. Unfortunately, I did not write down the previous firejail version.

Originally created by @novoid on GitHub (Apr 13, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3351 **Bug Description** I can not play files using `mplayer` unless adding the directory of the video file as whitelisted directory. I can not whitelist any directory so that I may play a video file in any ($HOME) (sub-)directory. This is my `/home/vk/.config/firejail/mplayer.profile` showing the error behavior: ``` noblacklist ${HOME}/.mplayer noblacklist /etc/mplayer/ noblacklist /run/user/1000/pulse net none ``` **Behavior change on disabling firejail** ``` vk@host ~2d % firejail --noprofile mplayer video.mp4 Parent pid 9825, child pid 9826 Error: /home/vk/.config is a symbolic link Error: proc 9825 cannot sync with peer: unexpected EOF Peer 9826 unexpectedly exited with status 1 1 vk@host ~2d % ``` **To Reproduce** mplayer profile: ``` noblacklist ${HOME}/.mplayer noblacklist /etc/mplayer/ noblacklist /run/user/1000/pulse net none ``` 1. having the mplayer profile as above 2. invoking `/usr/bin/firejail --debug --profile=/home/vk/.config/firejail/mplayer.profile mplayer video.mp4` 3. I get error ``` Error: /home/vk/.config is a symbolic link Error: proc 7521 cannot sync with peer: unexpected EOF Peer 7522 unexpectedly exited with status 1 ``` For detailed debug output, see http://paste.grml.org/hidden/ecc96efa/ **Expected behavior** Expected behavior would be that I may play back video files without whitelisting the directory of that video file. **Workaround** mplayer profile: ``` noblacklist ${HOME}/.mplayer noblacklist /etc/mplayer/ noblacklist /run/user/1000/pulse # Additional line fixing the issue with this workaround: this is the directory of "video.mp4" whitelist ${HOME}/tmp/2del/ net none ``` 1. having the mplayer profile as above 2. invoking `/usr/bin/firejail --debug --profile=/home/vk/.config/firejail/mplayer.profile mplayer video.mp4` 3. mplayer does play back video file Detailed debug output: http://paste.grml.org/hidden/d0b2dae6/ **Desktop** - Linux distribution and version: Linux Debian 10 buster - Firejail version: 0.9.58.2 **Additional context** I freshly upgraded from Debian oldstable yesterday. Before the upgrade, my custom profile without the additional whitelist did work fine. Unfortunately, I did not write down the previous firejail version.
Author
Owner

@rusty-snake commented on GitHub (Apr 13, 2020):

Broken down: firejail can not local user profiles if ~/.config is a symlink.

<!-- gh-comment-id:612854722 --> @rusty-snake commented on GitHub (Apr 13, 2020): ~Broken down: firejail can not local user profiles if \~/.config is a symlink.~
Author
Owner

@novoid commented on GitHub (Apr 13, 2020):

I also did some experiments because my ~/.config is a symlink:

whitelist ${HOME}/.config/firejail
whitelist ${HOME}/hosts/sherri/config/dot-config/firejail

However, when video playback worked with just adding the whitelist for the video directory (and not the whitelist lines for the .config folder), I don't think that the symlink issue of .config is related to my issue.

Correct me if I'm wrong.

<!-- gh-comment-id:612869800 --> @novoid commented on GitHub (Apr 13, 2020): I also did some experiments because my `~/.config` is a symlink: ``` whitelist ${HOME}/.config/firejail whitelist ${HOME}/hosts/sherri/config/dot-config/firejail ``` However, when video playback worked with just adding the whitelist for the video directory (and not the whitelist lines for the `.config` folder), I don't think that the symlink issue of `.config` is related to my issue. Correct me if I'm wrong.
Author
Owner

@smitsohu commented on GitHub (Apr 13, 2020):

Could you try with the noautopulse option? It should get you rid of the error.
I'll try to add a fix for that aspect.

<!-- gh-comment-id:612870523 --> @smitsohu commented on GitHub (Apr 13, 2020): Could you try with the `noautopulse` option? It should get you rid of the error. I'll try to add a fix for that aspect.
Author
Owner

@novoid commented on GitHub (Apr 13, 2020):

Hi @smitsohu,

Adding noautopulse to my profile file did resolve the issue. Without knowing the exact details, I consider this to be a solution and not a workaround, closing the ticket for now.

Thanks!

<!-- gh-comment-id:612871809 --> @novoid commented on GitHub (Apr 13, 2020): Hi @smitsohu, Adding `noautopulse` to my profile file did resolve the issue. Without knowing the exact details, I consider this to be a solution and not a workaround, closing the ticket for now. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2103
No description provided.