summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandscreen_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-01-29 12:58:59 +0100
committerThiago Macieira <thiago.macieira@intel.com>2017-07-31 16:13:31 +0000
commitaac987b2a18041997634f2cb1e7c827e380041ad (patch)
tree8e885f61351f24a9a5224d52abe552ff5e483c8e /src/client/qwaylandscreen_p.h
parente459125d971d1a0c548a63a1286cb839936a8772 (diff)
QWaylandShmBuffer: use QTemporaryFile
Instead of using mkstemp. Even current glibc versions do not open the file with O_CLOEXEC, so this code is not thread-safe. QTemporaryFile is. And since Qt 5.10, it will also use O_TMPFILE on Linux, so the file will not actually exists on disk. Take this opportunity to use the runtime directory instead of /tmp. There's no guarantee that the /tmp filesystem can support mmap'ing, while XDG_RUNTIME_DIR has that guarantee. It's also usually a tmpfs, so no data will be leaked to disk. Change-Id: I8d96dea9955d4c749b99fffd14cd5335d1114cef Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/client/qwaylandscreen_p.h')
0 files changed, 0 insertions, 0 deletions