mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6216] [MERGED] profiles: multimc: fix instances not running & harden #5877
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#5877
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/6216
Author: @powerjungle
Created: 2/19/2024
Status: ✅ Merged
Merged: 2/29/2024
Merged by: @netblue30
Base:
master← Head:master📝 Commits (1)
1a2e8abmultimc: instances not running, because of missing permissions📊 Changes
1 file changed (+11 additions, -0 deletions)
View changed files
📝
etc/profile-m-z/multimc5.profile(+11 -0)📄 Description
When starting an instance, in the logs, a failed attempt to load the lwjgl library is shown and the game doesn't run.
The library is in the /tmp directory. The reason for this appears to be, in the lwjgl source code, the shared library loading function, extracts in the temporary directory and continues from there. This is fixed by whitelisting.
The reason for adding "ignore noexec /tmp" as well, is that without it, the game can't run, even if the directory is whitelisted. It seems the library needs to be loaded from /tmp.
A second error for a failed attempt to access /home/user/.cache/JNA is also shown in the logs. This is also fixed by whitelisting.
The errors which inspired the commit:
Links to the source code that should be responsible for the /tmp error:
56d09c39ff/modules/lwjgl/core/src/main/java/org/lwjgl/system/SharedLibraryLoader.java (L51)56d09c39ff/modules/lwjgl/core/src/main/java/org/lwjgl/system/SharedLibraryLoader.java (L137)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.