-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoiding indirect GLX for sandboxed Wine app #3144
Comments
Try https://virtualgl.org/ |
Thanks for your suggestion, totaam. I've since found out that |
@haarp You can try the |
Yes, I've read that in the manpage. But adding |
@haarp I guess your only alternative for now is to use a wine.local with |
Generally on modern systemd based distro, static resource access control by groups (like |
@glitsj16 This problem appears in any Wine app using 3D acceleration. At least on Nvidia hardware, Intel hardware does not appear to be affected. I would say this is a bug in the Wine profile, yes. |
@haarp the problem is this can be fixed only by removing |
Suggestion:
|
@Vincent43 I'm aware if that. I'm not sure how to solve this properly myself. But please bear in mind that a modern distro does not imply systemd. Further research revealed that for Nvidia GLX to work, the user needs access to This actually concerns any application wishing to do 3D acceleration on an Nvidia card (with the propietary drivers), it is not limited to Wine! Easily tested with So while @rusty-snake 's suggestion is a start (even if not very discoverable), it needs to be applied to all apps that might do 3D acceleration, and which currently have |
For nvidia even systemd may not help although I'm not sure. Perhaps you should add |
Yes, that's a good workaround for now. But I'm wondering how to properly fix this in the future, for everybody. Possibly by providing finer-grained control over user groups? 3D acceleration isn't the only use case where a group might be necessary for a certain task, while all other groups can be removed. |
I'm closing here because the original question in answered. |
Greetings,
I have an untrusted Windows app running under Wine in need of 3D acceleration. When I remove its ability to use the net with --network=none, I'm getting
After some googling, it appears that starting X with the
+iglx
parameter (indirect GLX) seems to solve the problem. And indeed, it does! However, indirect GLX usually appears to be necessary to run 3D application over the network (which I'm not doing), and it is a possible security vulnerability.I suspect that indirect GLX is needed because I disabled network access for my app. So I tried the alternative mentioned in the firejail manpage, which is
--protocol=unix
. This however makes the app not start at all.I would like to avoid needing indirect GLX, but without giving the untrusted app network access. What are my options?
Thanks a lot!
The text was updated successfully, but these errors were encountered: