]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/fd-util.c
fd-util: add new acquire_data_fd() API helper
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Oct 2017 08:56:42 +0000 (10:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 10:13:44 +0000 (11:13 +0100)
commita548e14d690133dd8cca2d5ab8082bb23259fd5f
tree3de3fab023051eb731b97833290ed5fad7727467
parent9bd6a50e90427dd120d0c9495b50fda2f72887b6
fd-util: add new acquire_data_fd() API helper

All this function does is place some data in an in-memory read-only fd,
that may be read back to get the original data back.

Doing this in a way that works everywhere, given the different kernels
we support as well as different privilege levels is surprisingly
complex.
src/basic/fd-util.c
src/basic/fd-util.h
src/test/test-fd-util.c