aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-02-16 16:06:52 +0100
committerSimon Ser <contact@emersion.fr>2019-07-21 09:06:43 +0000
commit6908c8c85a2e33e5654f64a55cd4f847bf385cae (patch)
tree016944143540509191cfb8c1372cd339e1ed66b0 /src
parentconnection: do not abort when dup(fd) fails (diff)
downloadwayland-6908c8c85a2e33e5654f64a55cd4f847bf385cae.tar
wayland-6908c8c85a2e33e5654f64a55cd4f847bf385cae.tar.gz
wayland-6908c8c85a2e33e5654f64a55cd4f847bf385cae.tar.bz2
wayland-6908c8c85a2e33e5654f64a55cd4f847bf385cae.tar.lz
wayland-6908c8c85a2e33e5654f64a55cd4f847bf385cae.tar.xz
wayland-6908c8c85a2e33e5654f64a55cd4f847bf385cae.tar.zst
wayland-6908c8c85a2e33e5654f64a55cd4f847bf385cae.zip
cursor: Use memfd_create() when available
This (so-far) Linux-only API lets users create file descriptors purely in memory, without any backing file on the filesystem and the race condition which could ensue when unlink()ing it. It also allows seals to be placed on the file, ensuring to every other process that we won’t be allowed to shrink the contents, potentially causing a SIGBUS when they try reading it. This patch is best viewed with the -w option of git log -p. Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Reviewed-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions