diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2018-02-06 13:49:42 +0300 |
---|---|---|
committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2018-02-15 22:15:02 +0000 |
commit | 24adaa9a742e6f95ff897d0eb9a2bce0527dd042 (patch) | |
tree | bb159c5d6f69cb0ccde7f6555f1a41e88f12c2c3 /examples | |
parent | 8db9e33997a8fbe3e13eab1ca62ae2d5ac39abef (diff) |
xcb: Fix access to shm for X server running from another user
Use ShmCreateSegment call, that was added in MIT-SHM 1.2, to
create shared memory segments on the server side. It returns
a POSIX shared memory object that is used to mmap memory.
It's in effect a file descriptor that is passed through the
X server socket and thus avoids permission checks.
On the other hand this scheme is more secure, because the
file descriptor, and thus the shared memory, are accessible
only by the X server and the application.
Task-number: QTBUG-46017
Change-Id: I202eead9d01aee2ab5b65f4f74f4c13da7cb2239
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions