What are the best ways to run a game on sandboxed mode with only game HDD shared to it. There should not be network access for the game and there should be GPU (intel integrated) pass-through.

I have tried Gnome boxes, but GPU pass through is not working and checked distrobox, but that too shares HOME folder.

  • Leaflet
    link
    English
    126 hours ago

    You can do this using Lutris.

    1. Install it from Flathub
    2. Open Lutris and have it install the tools it needs (wine, dxvk, etc)
    3. Close Lutris
    4. Use Flatseal to limit its permissions; remove network, filesystem access, etc
    5. Open Lutris and run the game

    Note that this isn’t a perfect sandbox. For example, the game can still send a link to your browser to open. Theoretically it could do something malicious with that. Though you could probably work around that issue by changing your default browser to a flatpak version and disable network access there. There might be other small sandbox breaks, but nothing I can think of.