Public bug reported:

Protontricks crashes when attempting to launch Winetricks (or any
command that attempts to run Wine/Proton). To reproduce, assuming Steam
and at least one Proton-enabled game is installed and launched at least
once in Steam:

* Run `protontricks -v --gui`
* Pick any installed game

Winetricks GUI dialog should eventually appear. Instead, the application
will crash after picking the Steam app; the exact cause is reported in
the log line `pressure-vessel-wrap[4860]: E: Child process exited with
code 1: bwrap: setting up uid map: Permission denied`.

This happens because Steam Runtime - which uses bubblewrap (sandboxing
tool) - requires user namespaces. Steam is already allowed to use user
namespaces via `/etc/apparmor.d/steam` AppArmor profile. If we create
our own AppArmor configuration under `/etc/apparmor.d/protontricks`:

```
abi <abi/4.0>,
include <tunables/global>

profile protontricks /usr/bin/protontricks{,-launch} flags=(unconfined) {
  userns,
  
  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/protontricks>
}
```

restart AppArmor (`systemctl restart apparmor`) and then try launching
Protontricks again, it will work as intended.

Alternatively, `--no-bwrap` can be passed (eg. `protontricks --no-bwrap
--gui`), though this will disable Steam Runtime and mean Protontricks is
less able to ensure the correct environment is set for running
Wine/Proton, which can cause some compatibility issues.

---

This was tested on Ubuntu 24.10, though I've received multiple reports
over at the upstream project's issue tracker
(https://github.com/Matoking/protontricks/issues) which I suspect are
caused by this issue.

I also tested the newest 1.12.0 package which is not available in 24.10
repositories and has to be installed from plucky-proposed manually.
Protontricks 1.12.0 is required for the application to work at all due
to a Steam client update last year.

** Affects: protontricks (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2098122

Title:
  Protontricks crashes on launch due to missing AppArmor profile

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/protontricks/+bug/2098122/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to