mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3635] [mpv] "Running subprocess failed: init" when trying to execute script in ~/bin #2287
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#2287
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 @rieje on GitHub (Sep 19, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3635
Bug and expected behavior
Fail to execute simple sh script at
~/bin/mpv-testmebound to a key in mpv--error "Running subprocess failed: init" from mpv on each attempted invocation.Execute script that simply does a
notify-send "testme".No profile or disabling firejail
firejail --noprofile PROGRAMin a shell?Script gets executed as expected--I get a notify-send notification.
Reproduce
Steps to reproduce the behavior:
Create script in ~/bin/mpv-testme with content and make it executable:
#!/usr/bin/sh
notify-send "testme"
In ~/.config/mpv/input.conf, bind the script to the delete key:
DEL run "/home/rieje/bin/mpv-testme"Launch mpv via the terminal, hit the delete guy. Error message prints in the terminal.
Environment
Additional context
My mpv.profile is the default mpv.profile with the following added:
@rusty-snake commented on GitHub (Sep 21, 2020):
Ok, got it. Use this mpv.local (+
seccomp !kcmp)If you use firejail 0.9.62.x, replace the last three lines with
ignore nodbus.@rieje commented on GitHub (Sep 21, 2020):
With the changes (
seccomp !kcmp+ copy/pasting that snippet into my the default mpv.profile that I've copied to~/.config/firejailand replacing the last 3 lines withignore nodbus, somehow mpv cannot open a file with the error:If I uncomment
whitelist /home/rieje/bin/mpv-testme, I can open the file but continue to receive the errorRunning subprocess failed: initevery time I hit the hotkey bound to the script.@rusty-snake commented on GitHub (Sep 22, 2020):
You're right, in 0.9.62.x is mpv a blacklisting profile. Can you try to use
echo "Hi"instead of notify-send to test and start mpv from a terminal. Also what she-bang has your script?@rieje commented on GitHub (Sep 22, 2020):
~/bin/mpv-testme:still results in the same error
Running subprocess failed: init. Without firejail, (/usr/bin/mpv ~/videos/video.mp4), uncommenting both commands has echo printing "hi" in terminal and notify-send sending message "testme" as expected.@rusty-snake commented on GitHub (Oct 6, 2020):
Looks like you need to comment the hole profile and uncomment it line for line to find the problematic line.
@rieje commented on GitHub (Oct 7, 2020):
Ok, I finally have some time and did some trial and error. This is what I've found works and all that is necessary:
diff ~/.config/firejail/mpv.profile /etc/firejail/mpv.profile:Appreciate your attempt.