chiark / gitweb /
namespace: unify limit behavior on non-directory paths
authorAlessandro Puccetti <alessandro@kinvolk.io>
Wed, 6 Jul 2016 07:48:58 +0000 (09:48 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:13:01 +0000 (10:13 +0200)
commiteeeff96fedd10487ca12e246832475090b245d36
tree241ca575ad5abef90ead2560087871ffca4a752a
parent91234e9678a03a52f0dccfcd4b24f561d3612d54
namespace: unify limit behavior on non-directory paths

Despite the name, `Read{Write,Only}Directories=` already allows for
regular file paths to be masked. This commit adds the same behavior
to `InaccessibleDirectories=` and makes it explicit in the doc.
This patch introduces `/run/elogind/inaccessible/{reg,dir,chr,blk,fifo,sock}`
{dile,device}nodes and mounts on the appropriate one the paths specified
in `InacessibleDirectories=`.

Based on Luca's patch from https://github.com/elogind/elogind/pull/3327
src/basic/mount-util.h