]> git.ipfire.org Git - thirdparty/systemd.git/commit
treewide: memfd_create: use exec flags 26800/head
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 14 Mar 2023 03:42:23 +0000 (03:42 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 15 Mar 2023 01:18:59 +0000 (01:18 +0000)
commitc29715a8f77d96cd731b4a3083b3a852b3b61eb8
treee2c8ed9dbc054bf7be6f27fb02f64e0249d6fbb1
parentad62530ebb397982a73266a07ac6f182e47922de
treewide: memfd_create: use exec flags

Use the flags MEMFD_EXEC or MEMFD_NOEXEC_SEAL as applicable.

These warnings instruct the kernel wether the memfd is executable or
not.

Without specifying those flags the kernel will emit the following
warning since version 6.3,
commit 105ff5339f49 ("mm/memfd: add MFD_NOEXEC_SEAL and MFD_EXEC"):

    kernel: memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=1 'systemd'
src/basic/memfd-util.c
src/home/homed-home.c
src/shared/data-fd-util.c
src/shared/serialize.c