]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace: Load sidecar verity settings in apply_mount_namespace()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 23 Mar 2023 12:48:42 +0000 (13:48 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 20 Jun 2023 13:22:47 +0000 (15:22 +0200)
commit66130f0a55c9b8e0cda869a21674749dcb70e83a
tree416378019eb0bdfab24b16e52ca6e61c3dc39de9
parent1a5f67aba3c31282a2f353921e18cc013816006f
namespace: Load sidecar verity settings in apply_mount_namespace()

Let's reduce the argument count of setup_namespace() a bit by loading
the sidecar verity settings in apply_mount_namespace(). This will also
make it possible to pass file descriptors to the root image/directory
into setup_namespace() as before this wasn't possible because the
verity settings logic looks for sidecar files next to the
root image which requires the path to be available.
src/core/execute.c
src/core/namespace.c
src/core/namespace.h
src/test/test-namespace.c
src/test/test-ns.c