mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2760] Spotify on Fedora fails to open (no sse2 support) #1732
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#1732
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 @jpeisenbarth on GitHub (Jun 11, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2760
Hello,
I'm on Fedora 30, and when I run
firejail spotifya window opens with the message "Cannot run on this CPU (no sse2 support)"Versions :
Spotify from RPMFusion
Spotify version 1.1.5.153.gf614956d, Copyright (c) 2019, Spotify LtdExecution output :
and the window with "Cannot run on this CPU (no sse2 support)"
firejail --noprofile spotifyruns flawlessly though@rusty-snake commented on GitHub (Jun 11, 2019):
@jpeisenbarth can you try
firejail --ignore=private-bin --ignore=private-etc spotify@jpeisenbarth commented on GitHub (Jun 11, 2019):
@rusty-snake Yup it works ! I guess that if I add the commands (rm, touch, cat, grep) in the profile (private-bin line) it will also work right ?
@rusty-snake commented on GitHub (Jun 11, 2019):
@jpeisenbarth yes, try
firejail --private-bin=rm,touch,cat,grep,tclsh --private-etc=alsa,asound.conf,drirc,openal spotify.If it works try only with
--private-binand onyl with--private-etc.@jpeisenbarth commented on GitHub (Jun 12, 2019):
@rusty-snake
firejail --private-bin=rm,touch,cat,grep,tclsh,find,head,dirname --private-etc=alsa,asound.conf,drirc,openal spotifyworks (i needed to add find,head,dirname in the private-bin)With only
--private-etcit doesn't work (same "command not found" as my first post)With only
--private-bin=rm,touch,cat,grep,tclsh,find,head,dirnameit does work, I don't see any changes between--private-binand--private-bin --private-etcthoughBut I noticed that even when it works (either
--private-binor--ignore=private-bin) I have this errorrm: cannot remove '/home/jpe/.cache/spotify': Device or resource busyand the images in Spotify do not load (it may be related to the busy resource)@rusty-snake commented on GitHub (Jun 12, 2019):
Reason:
72494481b2/etc/spotify.profile (L24)In general:
You are welcome to open a PR to add this to private-bin in spotify.profile
@jpeisenbarth commented on GitHub (Jun 12, 2019):
Yes, I will open a PR :)
I just noticed another bug, the radio doesn't work with this profile.
If I comment the line
private-etcin the profile it works, I guess something is missing here also but I don't know how to find it (I already tested by addingalsa,asound.conf,drirc,openal, but the radio is still not working)The images load well also if I comment the
private-etcline.@rusty-snake commented on GitHub (Jun 12, 2019):
firejail --trace spotify 2>&1 | grep "/etc"@jpeisenbarth commented on GitHub (Jun 12, 2019):
A window opens with
You havn't write access to 48:head:exec /usr/local/bin/head:0 47:find:fopen /proc/filesystems:0x55b843402290, problems ahead.and firejail exits@rusty-snake commented on GitHub (Jun 12, 2019):
No Idea.
You add
rm,touch,cat,grep,tclsh,find,head,dirnameto spotify.profile?firejail --trace spotify 2>&1(without grep)firejail --trace spotify(without merge stdout and stderr)firejail --trace /bin/spotify(or where ever you install spotify)@jpeisenbarth commented on GitHub (Jun 12, 2019):
Yes,
firejail spotifyworks,firejail --trace spotifydoes not (literally just adding--trace)The 3 commands you suggest give the same error.
Maybe the execution outpout (stdout + stderr) would be interesting : firejail_spotify.log
Maybe these lines ?
@rusty-snake commented on GitHub (Jun 12, 2019):
Maybe
firejail --noprofile --trace spotify 2>&1 | grep "/etc"works, if not, I don't have any more ideas.@jpeisenbarth commented on GitHub (Jun 12, 2019):
Nope, it doesn't work 😕
@rusty-snake commented on GitHub (Jun 14, 2019):
@jpeisenbarth you can try
firejail --build spotify, at the bottom of the output is a private-etc line, after starting with this command you must open the radio.@jpeisenbarth commented on GitHub (Jun 14, 2019):
@rusty-snake
This command fails with the same error message in a window (
You havn't write access to 30:head:exec /usr/bin/head:0 29:find:fopen /proc/filesystems:0x5616b1343290, problems ahead.)In the output logs there is indeed a
private-etcline (private-etc fonts,xdg,gtk-3.0,selinux,system-fips,terminfo,). I added these elements in theprivate-etcline in the profile but the radio still doesn't work.I'm not sure if I understood well what I should do with this line (from the
--buildcommand)@rusty-snake commented on GitHub (Jun 14, 2019):
journalctl -r, if there is nothing helpfull about spotify do 4.# comment the next line or put 'ignore private-etc' in your spotify.local if you want to use the radio.@jpeisenbarth commented on GitHub (Jun 14, 2019):
Nothing related to firejail/spotify in the journal 😕
I will add the comment in the PR then
Thank you for your help !