Skip to content
Commit d14d851c authored by Djalal Harouni's avatar Djalal Harouni Committed by Zbigniew Jędrzejewski-Szmek
Browse files

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
(cherry picked from commit f0a4feb0)
parent fb36bef4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment