summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn-setuid.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-25 11:13:16 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-25 15:24:46 +0200
commitae20320785da548130929ad2af758be4803931a7 (patch)
tree403f5b1500228b8689cfa112eaf08bcab1e57df9 /src/nspawn/nspawn-setuid.h
parent5d1ce25728856956c1fbfe05b491067f83bd2216 (diff)
machined: add new OpenRootDirectory() call to Machine objects
This new call returns a file descriptor for the root directory of a container. This file descriptor may then be used to access the rest of the container's file system, via openat() and similar calls. Since the file descriptor returned is for the file system namespace inside of the container it may be used to access all files of the container exactly the way the container itself would see them. This is particularly useful for containers run directly from loopback media, for example via systemd-nspawn's --image= switch. It also provides access to directories such as /run of a container that are normally not accessible to the outside of a container. This replaces PR #2870. Fixes: #2870
Diffstat (limited to 'src/nspawn/nspawn-setuid.h')
0 files changed, 0 insertions, 0 deletions