Skip to content
Snippets Groups Projects
  • Colin Walters's avatar
    dd5fd9c1
    missing: Sync from latest systemd, add memfd_create() · dd5fd9c1
    Colin Walters authored
    Planning to use memfd_create() in flatpak and rpm-ostree, which both use
    bubblewrap, and want to pass read-only data via file descriptor to the
    container. Passing via `O_TMPFILE` requires `O_RDWR` (read and write),
    and passing via a pipe would require buffering.
    
    The systemd `missing.h` has grown enormously; I only cherry-picked the bits for
    memfd.
    dd5fd9c1
    History
    missing: Sync from latest systemd, add memfd_create()
    Colin Walters authored
    Planning to use memfd_create() in flatpak and rpm-ostree, which both use
    bubblewrap, and want to pass read-only data via file descriptor to the
    container. Passing via `O_TMPFILE` requires `O_RDWR` (read and write),
    and passing via a pipe would require buffering.
    
    The systemd `missing.h` has grown enormously; I only cherry-picked the bits for
    memfd.