launcher: keep the Wine server bind out where namespaces cannot nest #551
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/551"
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?
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T22:06:33Z.
Since #502, ProjectScarlett doesn't start on Ubuntu 26.04 with its default AppArmor profiles and a tmpfs
/tmp: the launch ends withunshare: unshare failed: Operation not permitted, after 0.3 s.Cause. #502 wraps the launch in
bwrap. Ubuntu'sbwrap-userns-restrictprofile lets bwrap start, but what runs inside it has no capabilities in a new user namespace (the kernel log saysapparmor="DENIED" ... profile="unpriv_bwrap" ... capname="sys_admin"). Both the offline launch'sunshareand the container Proton starts (srt-bwrap) need that. Puttingunshareoutside and bwrap inside doesn't help:srt-bwrapis still refused, so I didn't reorder them.Change. The probe now makes a namespace inside the wrapper. If that fails, the launch stays as it was before #502, with the existing message about tmpfs. Systems where namespaces nest keep the bind. The offline isolation isn't touched.
Tested
tests/test_host.pythat fails without the change; the other host tests pass.python tuxbox.py check --no-gpu: passed./tmpon tmpfs): the old probe passes, then the launch fails; the new one keeps the launch and the game starts offline. ProjectScarlett started on an RTX 5090 (10de:2b85, 620.70.10, GE-Proton11-14) with this change (an integration build on007b982d, with our diagnostics), then crashed in the title's start-up code after 80 s; that crash is main's own, since #527 (#554, with a draft fix in #557). The launch itself is what this fixes.Not run: a system where the bind is used (namespaces that nest), AMD, GPU checks (this is launcher code). The tmpfs problem of #419 stays open on systems like this one: a bind made by
unshare --mountinstead would avoid the profile, but I haven't built it.cc @smith-3
python tuxbox.py checkof7f4fdbb6(rebased ontoe5d2e913; no change to the patch): RTX 5090 (10de:2b85, 620.70.10) 200 pass, 0 fail; AMD iGPU (1002:13c0, RADV) 199 pass, 0 fail. GE-Proton11-14.Evidence: TuxBox check of
7f4fdbb68f, no uncommitted changes, GPU 10de:2b85: 16 passed, 0 failed, 0 not runEvidence: TuxBox check of
7f4fdbb68f, no uncommitted changes, GPU 1002:13c0: 16 passed, 0 failed, 0 not run🤖 Generated with Claude Code
Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-30T09:26:34Z.
Merged into main as
af076987(squashed and credited to you), thanks!I covered the case you couldn't: CachyOS with
/tmpon tmpfs, where namespaces nest. Both the old and the new probe pass here, so the bind is still made, and the host tests pass.Pull request closed