mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3910] molotov: cannot run AppImage with custom profile #2450
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#2450
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 @esp13 on GitHub (Jan 22, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3910
Hi,
Like many, I got the permission denied while trying to run an .AppImage
This happened to MolotovTV app findable here
Here I read that we should use this for appimages but it doesn't solve the problem:
As I am too novice (and English isn't my fluent language) to understand all the discussion, could you help to solve the problem for my case?
Here is the profile established from profile.template :
@rusty-snake commented on GitHub (Jan 22, 2021):
The second command has no effect. fusermount will always be blacklisted. A
noblacklistcommand must come before it's correspondingblacklistcommand. Flip these lines.@rusty-snake commented on GitHub (Jan 22, 2021):
How do you start?
firejail --appiamge --profile=/path/to/your/profile /path/to/molotovtv.AppImage/outside/the/sandbox?IDK what the current state in #3910 is but AFAICT there are AIs which don't work with
--appimageATM.@esp13 commented on GitHub (Jan 22, 2021):
I gone with this:
firejail --profile=/home/thefolderIwantnotinsideuserhome/FireJail/CustomProfiles/molotov.profile --appimageFor the moment I try to launch it manually inside the sandbox:
./molotov.AppImageI tried without --appimage option too but same result:
firejail --profile=/home/thefolderIwantnotinsideuserhome/FireJail/CustomProfiles/molotov.profileAnd without --appimage option?
@esp13 commented on GitHub (Jan 22, 2021):
So I tried this instead:
but same result
@esp13 commented on GitHub (Jan 22, 2021):
I tried to comment
#include disable-common.incbut same result
@rusty-snake commented on GitHub (Jan 22, 2021):
--appiamgeshould be the last firejail argument and must be the first (if--profileis used) IIRC. 🥴The you need to allow to execute files in $HOME.
^ at the top of your profile (e.g. after
include globals.local)#3910 only happens with --appiage IIRC.
This snipped works only if
--appimagecomes before--profile. Anyway you could simply addnoblacklist ${PATH}/fusermountbeforeinclude disable-common.incfor your profile.However "I tried to comment
#include disable-common.incbut same result" …If you use
--appimageyou need to use the path to the AI outside the sandbox. W/o--appiamge, you need to use the path to the AI inside the sandbox.@rusty-snake commented on GitHub (Jan 22, 2021):
Does
firejail --noprofile --allusers /path/to/AppImagework?@esp13 commented on GitHub (Jan 22, 2021):
Before reinstalling my distro from scratch I was using it like this inside a dedicated folder itself inside my home folder:
firejail --noprofile --private=. --appimage "./molotov.AppImage"And that was working well.
But as I realise --noprofile option isn't secure at all I'm trying to do better
Ok so I go with this:
firejail --appimage --profile=/home/thefolderIwantnotinsideuserhome/FireJail/CustomProfiles/molotov.profileBy adding this just before globals.local I get this error instead permission one :
I keep this but don't understand what it is for:
Ok I will do so
I got a permission issue with this:
exec /home/thefolderIwantnotinsideuserhome/FireJail/molotovHome/molotov.AppImageAnd with this:
exec /home/myuser/molotov.AppImagei get this error again:
@esp13 commented on GitHub (Jan 23, 2021):
To avoid fuse error, I tried :
./molotov.AppImage --appimage-extract-and-runbut I got this error:
Failed to run /tmp/appimage_extracted_f3117eebfc709bd30ace1a4b481f4010/AppRun: Permission denied@esp13 commented on GitHub (Jan 23, 2021):
I don't understand all that is explained here, is it possible that using 0.9.63 could solve this problem? (My distro repo as 0.9.62-3 version instead)
@rusty-snake commented on GitHub (Jan 23, 2021):
Add
ignore noexec /tmp@esp13 commented on GitHub (Jan 23, 2021):
Thanks, this time no error, but nothing happens/appears after extraction
@esp13 commented on GitHub (Jan 23, 2021):
./molotov.AppImage --appimage-extract./squashfs-root/AppRunResult in :
Trappe pour point d'arrêt et de trace (core dumped)@esp13 commented on GitHub (Jan 31, 2021):
Could this help? :
@rusty-snake commented on GitHub (Mar 27, 2021):
any progress?
@esp13 commented on GitHub (Apr 12, 2021):
Hi,
Thanks for asking :)
Unfortunately no :/
Today I was trying with an other appimage (OpenHV) and for the moment I get the same issues.
@ghost commented on GitHub (Apr 16, 2021):
Downloaded that AppImage and running
firejail --appimage --ignore=quiet ./OpenHV-20210321-x86_64.AppImageworks for me on Arch Linux. Can't find specifics on your OS or firejail, but it might be wise to review this without all the prior (FUSE related) references mentioned in this thread. No guarantees though, not all AppImages are created Equal...@esp13 commented on GitHub (May 1, 2021):
ALLELUIA!!! Today this worked:
I don't understand what changed I didn't get same results in february
The Fuse version and the FireJail version are still the same:
But I still can't get it working with the simpler:
I still get this error:
Thank you, I will give a new try for OpenHV too
-Edit :-
And one core of the CPU go 100% and stay 100% and nothing happens
I used the same profile that for molotov, maybe too restrictiv
-Edit2 :-
I tried on other computer with other distribution (with LMDE4 instead of last LM) and got it working but without sound for now.
On the computer where it doesn't work I think the game is running but nothing appears on screen. I have two screens, maybe could it related to.
@rusty-snake commented on GitHub (Aug 4, 2021):
Do you still need help?