]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/namespace.c
core: make RootDirectory= and ProtectKernelModules= work
authorDjalal Harouni <tixxdz@opendz.org>
Sun, 6 Nov 2016 21:51:49 +0000 (22:51 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Mon, 7 Nov 2016 11:34:52 +0000 (12:34 +0100)
commitf0a4feb0a5318e52107b0df63997a9b13f5be668
tree2537598b1ca72ffc6f594e346974b512f1a128b4
parentf9b1947f9b9bcdf2b28953a40b1c537038c2a958
core: make RootDirectory= and ProtectKernelModules= work

Instead of having two fields inside BindMount struct where one is stack
based and the other one is heap, use one field to store the full path
and updated it when we chase symlinks. This way we avoid dealing with
both at the same time.

This makes RootDirectory= work with ProtectHome= and ProtectKernelModules=yes

Fixes: https://github.com/systemd/systemd/issues/4567
src/core/namespace.c