Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Added warning when /tmp directory is mounted with noexec #1882

Merged

Conversation

bit69tream
Copy link
Contributor

Minecraft versions starting from 1.19 would not start at all if /tmp is mounted as noexec.

Now, Prism Launcher will check if /tmp has noexec and if it does, a message pop-up like this would be displayed:

22-11-23--01-35-51

The C API for querying information about mount points is a bit ugly, but the only other option is to either parse /etc/mtab file or output of the mount command.

… option

Minecraft versions starting from 1.19 would not start at all if /tmp is mounted as `noexec`.

Signed-off-by: bit6tream <megapixel483@gmail.com>
@Scrumplex
Copy link
Member

launcher/Application.cpp Outdated Show resolved Hide resolved
…ption

Signed-off-by: bit6tream <megapixel483@gmail.com>
@Scrumplex
Copy link
Member

Isn't statvfs available on the other two platforms? I thought it was :O

@bit69tream
Copy link
Contributor Author

bit69tream commented Nov 23, 2023

Isn't statvfs available on the other two platforms? I thought it was :O

It is, but there are only ST_RDONLY and ST_NOSUID flags on both OpenBSD and FreeBSD.

@Scrumplex Scrumplex added this to the 8.1 milestone Nov 28, 2023
@Scrumplex Scrumplex added the changelog:added A PR that appears under "Added" in the changelog label Nov 28, 2023
@Scrumplex Scrumplex changed the title (#1693) Notify user if /tmp directory has noexec mount option [Linux] Added warning when /tmp directory is mounted with noexec Nov 28, 2023
@Scrumplex Scrumplex merged commit 4c59a1b into PrismLauncher:develop Nov 28, 2023
32 of 38 checks passed
@Scrumplex Scrumplex added the manual backport PRs that have been backported manually label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:added A PR that appears under "Added" in the changelog manual backport PRs that have been backported manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not initialize class com.mojang.blaze3d.systems.RenderSystem starting from 1.19
4 participants