5 ms·
Not X11, any app can see or manipulate any other apps screen buffer. It is one reason Wayland is nice. If your system has MAC you can restrict its file access,
by zanny 13y ago
Not X11, any app can see or manipulate any other apps screen buffer. It is one reason Wayland is nice.
If your system has MAC you can restrict its file access, but in general you have library support for this stuff built in.
It is also why in most cases it is a PITA to stream 3d rendered screens. Opengl / directX don't provide easy ways like X11 to look at a completed framebuffer and store / broadcast it.
- dman 13y agoIn OpenGL this is fairly easy using FBO's - http://www.songho.ca/opengl/gl_fbo.html http://www.songho.ca/opengl/gl_fbo.html . I have never used DirectX but I would be surprised if it did not allow you to read the framebuffer.
- Zergy 13y agoIt does. That is how a lot of bots and other cheats are made.
- ajross 13y agoWayland doesn't provide meaningful security for that case. It's true that there's no protocol support for arbitrary buffer access, but if you're running as the same user (as is the case here) it's comparatively trivial to dup the drm file descriptor and remap the buffers. You may need to be able to guess (or just probe for) the handles though, I'm not sure.
- 15charusername 13y agoWayland alone might not, but MAC can limit access to file descriptors