]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/data-fd-util.c
data-fd-util: add new memfd_clone_fd() helper
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Dec 2022 11:45:26 +0000 (12:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Dec 2022 11:47:01 +0000 (12:47 +0100)
commit6bea3d8e0f076b27323daba89f46993cd1925f0d
tree4ec2967341000a78d647c6e3a6483fee3b545a26
parent0254e4d66af7aa893b31b2326335ded5dde48b51
data-fd-util: add new memfd_clone_fd() helper

This adds a new helper for cloning any file's contents (or block device contents) into a new memfd.
src/shared/data-fd-util.c
src/shared/data-fd-util.h