memfd-util: add wrapper for memfd_create
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 14 Mar 2023 03:42:05 +0000 (03:42 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 15 Mar 2023 01:18:59 +0000 (01:18 +0000)
commitad62530ebb397982a73266a07ac6f182e47922de
tree879739ab2946d212074439a4ed4986b17c4e6f68
parent8cb0a001d8193721af98a448d5b3615ac5e263f1
memfd-util: add wrapper for memfd_create

The wrapper removes the flags MFD_EXEC and MFD_NOEXEC_SEAL when running
on kernels not understanding those flags.
src/basic/memfd-util.c
src/basic/memfd-util.h