]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace: create base-filesystem directories if RootImage= or RootDirectory= are set
authorDjalal Harouni <tixxdz@gmail.com>
Sun, 5 Mar 2017 20:19:29 +0000 (21:19 +0100)
committerDjalal Harouni <tixxdz@gmail.com>
Sun, 5 Mar 2017 20:19:29 +0000 (21:19 +0100)
commit10404d52e3402cd312a487fb88c23939ba35234a
tree5d4e04e1a8b688ba8c3eb518eabae6c38f5497e6
parent77313738fe0d656e6aa034a501b80def18a43103
namespace: create base-filesystem directories if RootImage= or RootDirectory= are set

When a service is started with its own file system image, always try to
create the base-filesystem directories that are needed. This implicitly
covers the directories handled by MountAPIVFS= {/proc|/sys|/dev}.

Mount protections or MountAPIVFS= mounts were never applied if we
changed the root directory and the related paths were not present under
the new root. The mounts were silently. Fix this by creating those
directories if they are missing.

Closes https://github.com/systemd/systemd/issues/5488
src/core/namespace.c
src/shared/base-filesystem.c