chiark / gitweb /
namespace: chase symlinks for mounts to set up in userspace
authorLennart Poettering <lennart@poettering.net>
Sat, 24 Sep 2016 10:41:30 +0000 (12:41 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:53 +0000 (08:50 +0200)
commitf203e18b6f2c9c69e897ff62d8a4478dd3e059fe
tree799d5e30bc1fe995b3415055ab195d2b699bdb54
parent6b0862dad14eedfa49119f13dfcaf572c7313669
namespace: chase symlinks for mounts to set up in userspace

This adds logic to chase symlinks for all mount points that shall be created in
a namespace environment in userspace, instead of leaving this to the kernel.
This has the advantage that we can correctly handle absolute symlinks that
shall be taken relative to a specific root directory. Moreover, we can properly
handle mounts created on symlinked files or directories as we can merge their
mounts as necessary.

(This also drops the "done" flag in the namespace logic, which was never
actually working, but was supposed to permit a partial rollback of the
namespace logic, which however is only mildly useful as it wasn't clear in
which case it would or would not be able to roll back.)

Fixes: #3867
src/basic/fs-util.c
src/basic/fs-util.h