mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6833] Support AppImages using zstd compression #3388
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#3388
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 @Eckoa on GitHub (Jul 21, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6833
Description
Trying to run the latest RPCS3 appimage in firejail it fails to run with a mount failure. I looked at line 188 that the output said was the issue in appimage.c and realized that it was thinking its iso9660 and not squashfs. I double checked by extracting the appimage and it does in fact produce an squashfs-root
I havent found a way in the documentation/appimage.c to tell it the appimage type so i figured it would be best to report this here.
Steps to Reproduce
run the latest RPCS3 appimage with the latest firejail
Expected behavior
application mounts and run
Actual behavior
fails to mount the appimage with invalid arguements
Behavior without a profile
produces the same output as above but without the profile loaded
Environment
@Eckoa commented on GitHub (Jul 21, 2025):
I had an idea of trying to repack RPCS3 and I figured out how to repackage the appimage
I think this isnt so much a firejail issue as an RPCS3 packaging issue. Repacking the appimage it runs just fine so if you would like ill close
EDIT: fouund the offending commit for RPCS3
235707278fThey changed how its built and use zstd compression. Im not sure what might be causing the issue with firejail here
@kmk3 commented on GitHub (Jul 22, 2025):
Thanks for reporting this.
The error is from L188 (type 1, iso9660):
From a quick glance, the code seems to look for an LZMA header to determine the
size/ offset to then determine the appimage type:So yes, the issue might be to be due to it using zstd compression.
Is this only done for RPSC3 or are there more appimages using zstd compresion?
There is likely a better way to determine the appimage type, but I'm not
familiar with this code.
For now, I agree that repackaging it to use a more commonly-supported
compression format would be a good idea for the sake of backwards
compatibility/wider tooling support, especially if the file size difference is
not that significant from the user's perspective.
For the long-term, it might be good support appimages with different types of
compression, so leaving this as an enhancement.
These seem to be related:
@Eckoa commented on GitHub (Jul 22, 2025):
I havent encountered any other appimages using it yet but I generally don't use many so I can't say how many do. I'm sure more may adopt it in the future for the space savings like RPCS3