]> git.ipfire.org Git - thirdparty/systemd.git/commit
memfd-util: introduce memfd_new_full() helper
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Dec 2024 10:28:46 +0000 (11:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Dec 2024 17:26:15 +0000 (18:26 +0100)
commit4d98709cb2d04525e3e96917128dfa7fd58a5125
tree3b0adebfaf2f5ac95142ac81ec0b7f43172f347d
parent9b1d97cccd0d8b2b52ccc03c96b53691059625b1
memfd-util: introduce memfd_new_full() helper

This is just like memfd_new(), but allows fine grained control of the
sealing flags.

This switches over all uses of memfd_new() where we actually want
sealing to use memfd_new_full().

This then allows use to use memfd_new() for two further calls, where we
previously used the more lowlevel memfd_create_wrapper().
src/basic/memfd-util.c
src/basic/memfd-util.h
src/home/homed-home.c
src/libsystemd/sd-journal/journal-send.c
src/shared/data-fd-util.c
src/shared/serialize.c
src/test/test-memfd-util.c