• Emmanuel Gil Peyrot's avatar
    shared: Use memfd_create() when available · c51cc13b
    Emmanuel Gil Peyrot authored
    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.
    
    It is an almost exact copy of Wayland commit
    6908c8c85a2e33e5654f64a55cd4f847bf385cae, see
    wayland/wayland!4Signed-off-by: default avatarEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
    c51cc13b
Name
Last commit
Last update
.gitlab-ci Loading commit data...
clients Loading commit data...
compositor Loading commit data...
data Loading commit data...
desktop-shell Loading commit data...
doc Loading commit data...
fullscreen-shell Loading commit data...
include Loading commit data...
ivi-shell Loading commit data...
libweston Loading commit data...
libweston-desktop Loading commit data...
man Loading commit data...
pipewire Loading commit data...
protocol Loading commit data...
remoting Loading commit data...
shared Loading commit data...
tests Loading commit data...
tools/zunitc Loading commit data...
wcap Loading commit data...
xwayland Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
DCO-1.1.txt Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
notes.txt Loading commit data...
releasing.txt Loading commit data...
weston.ini.in Loading commit data...