Skip to content

wine-lol could not run due to modify_ldt being banned by flatpak #85

Closed
@alaviss

Description

@alaviss

Describe the problem
The patch for League of Legends in lutris wine uses the LDT to store data. The syscall responsible for this (modify_ldt) is however banned by flatpak via seccomp, causing wine to not be able to launch any application.

Is it reproducible with native Lutris?
No

Steps to reproduce

  1. Install League of Legends

Expected behavior
League of Legends is installed

Actual behavior

2019-12-24 07:03:33,926: Runner %s needs to be installed
2019-12-24 07:03:33,933: Getting runner information for wine (version: lutris-lol-4.20-x86_64)
2019-12-24 07:04:01,127: Downloading file 1 of 1

(lutris:2): Gtk-CRITICAL **: 07:04:04.340: gtk_tree_model_get_column_type: assertion 'GTK_IS_TREE_MODEL (tree_model)' failed

(lutris:2): Gtk-CRITICAL **: 07:04:04.340: gtk_combo_box_get_active_id: assertion 'gtk_tree_model_get_column_type (model, column) == G_TYPE_STRING' failed
2019-12-24 07:04:04,347: Creating a win32 prefix in /home/alaviss/Games/league-of-legends-test
2019-12-24 07:04:09,730: Wine prefix creation is taking longer than expected...
2019-12-24 07:04:16,991: No user.reg found after prefix creation. Prefix might not be valid
2019-12-24 07:04:17,206: Creating a win32 prefix in /home/alaviss/Games/league-of-legends-test
2019-12-24 07:04:22,490: Wine prefix creation is taking longer than expected...
2019-12-24 07:04:29,751: No user.reg found after prefix creation. Prefix might not be valid
2019-12-24 07:04:30,076: The game doesn't have an executable
Running /home/alaviss/.var/app/net.lutris.Lutris/data/lutris/runtime/winetricks/winetricks --unattended d3dcompiler_43 d3dx9
ls: cannot access '/home/alaviss/Games/league-of-legends-test/drive_c': No such file or directory
grep: /home/alaviss/Games/league-of-legends-test/*.reg: No such file or directory
------------------------------------------------------
WINEPREFIX INFO:
Drive C:

Registry info:
/home/alaviss/Games/league-of-legends-test/*.reg:
------------------------------------------------------
------------------------------------------------------
/home/alaviss/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-lol-4.20-x86_64/bin/wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message "modify_ldt: Operation not permitted"
------------------------------------------------------
Waiting on children
Exit with returncode 1
2019-12-24 07:04:32,106: Creating a win32 prefix in /home/alaviss/Games/league-of-legends-test
2019-12-24 07:04:37,384: Wine prefix creation is taking longer than expected...
2019-12-24 07:04:44,646: No user.reg found after prefix creation. Prefix might not be valid
Running /home/alaviss/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-lol-4.20-x86_64/bin/wine /home/alaviss/.var/app/net.lutris.Lutris/cache/lutris/installer/league-of-legends/lol_installer/League%20of%20Legends%20installer%20NA.exe
modify_ldt: Operation not permitted
Waiting on children
Exit with returncode -11

Flatpak info
flatpak --version

Flatpak 1.4.3

flatpak --gl-drivers

default
host

Activity

gasinvein

gasinvein commented on Dec 24, 2019

@gasinvein
Member

Thanks for the report. However, I don't think it's possible to fix this on our side. Is the syscall really essential for the wine build to work?

added
sandboxThis has something to do with sandbox limitations
on Dec 24, 2019
alaviss

alaviss commented on Dec 24, 2019

@alaviss
Author
eszlari

eszlari commented on Mar 22, 2020

@eszlari

@alaviss Consider opening an issue under: https://github.com/flatpak/flatpak/issues

TheGreatestJannet

TheGreatestJannet commented on Feb 20, 2021

@TheGreatestJannet

Is this still an issue? I'm looking to run league of legends in a sandbox.

ilkekaratas

ilkekaratas commented on May 30, 2021

@ilkekaratas

Hello! how did you patch out the ban? I am trying to set League on PS4 gentoo but I get this error. Can you please tell?

alaviss

alaviss commented on May 31, 2021

@alaviss
Author

Hello! how did you patch out the ban? I am trying to set League on PS4 gentoo but I get this error. Can you please tell?

Removing these lines should do:
https://github.com/flatpak/flatpak/blob/6f86a8ff423a2e7a8e1db70c69612f3fa49ae9d4/common/flatpak-run.c#L2899-L2901

ghost mentioned this on Jan 24, 2022

14 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sandboxThis has something to do with sandbox limitations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gasinvein@alaviss@losuler@ilkekaratas@Fabianoshz

        Issue actions

          wine-lol could not run due to modify_ldt being banned by flatpak · Issue #85 · flathub/net.lutris.Lutris