]> git.ipfire.org Git - thirdparty/systemd.git/commit
portable: copy SELinux label when extracting units from images 20767/head
authorLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 16 Sep 2021 11:47:42 +0000 (12:47 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 20 Sep 2021 13:23:55 +0000 (14:23 +0100)
commit409f4cf1f2bc797bb6a73eab310b707308a8352e
tree2a48a5abad0f602dce7d6da4696f518abb613a25
parent447d46879ca2b7c001a3d27d6a89ef05fb77c297
portable: copy SELinux label when extracting units from images

Units are copied out via sendmsg datafd from images, but that means
the SELinux labels get lost in transit. Extract them and copy them over.

Given recvmsg cannot use multiple IOV transparently when the sizes are
variable, use a '\0' as a separator between the filename and the label.
meson.build
src/portable/portable.c
src/portable/portable.h