mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5499] minecraft-launcher: minecraft does not work #3016
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#3016
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 @tzsz0 on GitHub (Dec 2, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5499
Description
While it's possible to open the minecraft launcher itself, the actual game does not start. I can open the launcher, den then click on Start/Play, this only results in Exit Code 1.
Steps to Reproduce
Install firejail (0.9.70), download minecraft-launcher from minecraft.net and extract it to games/minecraft-launcher. Create file minecraft.local with content
And then execute
firejail --profile=minecraft.local games/minecraft-launcher/minecraft-launcher.Login to minecraft and try launching the game with the latest version (1.19.2 as of writing this)
Note, the launcher does not crash but only displays a small pop up with the exit code. When running with --noprofile,
the game works fine.
LC_ALL=C firejail PROGRAM(LC_ALL=Cto get a consistent output in English that can be understood by everybody)ERRORExpected behavior
Successful game startup
Actual behavior
Launcher can't start game and reports Exit Code 1
Behavior without a profile
Game was playable
Additional context
.
Environment
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)[? ]]browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)EDIT by @rusty-snake: Fix markdown
@rusty-snake commented on GitHub (Dec 2, 2022):
Related: #4961
@rusty-snake commented on GitHub (Dec 2, 2022):
Is there anything in the syslog?
@tzsz0 commented on GitHub (Dec 2, 2022):
I just performed the steps above twice and with different syslog output. For the first run i go:
(is this even related, i don't know but the timestamp matches)
And the second run result in
There is the stacktrace, I just don't know why it didn't show in the first run.
@kmk3 commented on GitHub (Dec 2, 2022):
(Offtopic)
@tzsz0
Please see the following links for how to format code blocks in markdown:
@tzsz0 commented on GitHub (Dec 2, 2022):
(fixed formatting)
@tzsz0 commented on GitHub (Dec 3, 2022):
So, I tried to find the line in the profile that hinders the game from launching. After some digging, I thought I found it but now I am at a state where firejail doesnt sandbox anything anymore.
Running
firejail --profile=/etc/firejail/minecraft-launcher.profile games/minecraft/minecraft-launcher/minecraft-launcherlaunches the launcher and(!) the game but the first line in the terminal statesSo I guess that refers to the chromium part of the launcher. However, it would still leave the rest of the game without any further security constraints. The most problematic part is that malicious mods could escape the game and do harm to my system and/or read/write important files in my /home directory.*
And I don't know why the game runs now, I am using the same profile as I did in the beginning
*EDIT: I tried, the program can read all subdirectories (incl contents) in my homedir
EDIT2: /etc/firejail/minecraft-launcher.profile is the original file, I made all modifications to a local file
EDIT3: appearently I was in a sandboxed shell...
@kmk3 commented on GitHub (Dec 3, 2022):
@tzsz0 commented on Dec 2:
Note that /etc/firejail/minecraft-launcher.profile already includes
minecraft-launcher.local at the beginning of the file.
So that include should either be removed or changed into something like the
following:
Which includes /etc/firejail/minecraft-launcher.local if it exists. This way,
the commands in the profiles would effectively be executed in the following
order:
@kmk3 commented on GitHub (Dec 3, 2022):
To make sure that this does not have the same cause as #4961 (as mentioned
by @rusty-snake), does it work with the following in minecraft-launcher.local?