I’m trying to make the wine-based snap package logos9 work under strict confinement. It works fine in devmode, but then seems to fail to start child process(es) when run in jailmode. Here’s the specific error I see in the winedebug output:
System.ComponentModel.Win32Exception: Accès refusé
at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolea
n firstModuleOnly)
at System.Diagnostics.NtProcessManager.GetFirstModuleInfo(Int32 processId)
at System.Diagnostics.Process.get_MainModule()
at LDLS4.OurApp.Main(String[] astrArgs)
wine: Unhandled exception 0xe0434352 in thread 120 at address 000000007B0118AD (thread 0120), starting debugger...
0130:err:unwind:install_bpf Unexpected status 0xffffffff, errno 1.
Can't attach process 011c: error 5
I’m not well-versed in AppArmor and Seccomp, but it seems like this is the relevant Seccomp violation:
Has nobody run into this before? I’ve tried filtering and understanding the winedebug output while running the app, but it’s all new territory for me and I don’t understand Windows function calls at all (yet!).
Did I even identify the correct Seccomp violation? It would be helpful to know if I’m at least on the right track.
It turns out that the problem is related to how dotnet tries to modify a child process. It uses a system call that could modify any process, since it takes an arbitrary PID as the first argument. This is a snap no-no, although supposedly there’s a workaround using a manually-connected process-control plug (but it’s not working for me). But this manual CLI step would still be a pain for normal users.
Hey! Fellow Logos user! Typical response on these things huh? So, there’s a thing called Darling that lets you use Mac OS apps. I’m stuck at getting a kernel module installed for it, but if that works, then we could use the Mac OS app and ditch wine. The problem? I’m a Fedora user, not a Debian/Ubuntu, and they made a deb package for the module. Hope that helps you not get bogged down.