summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-packet.c
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-06-30 13:41:41 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-07-06 13:23:19 +0100
commit825d5287d7717b2dd220846217891c110e7c3083 (patch)
tree04d538c0172c5b0cc4c7b1a54b5580754c4e4885 /src/libsystemd-network/dhcp-packet.c
parent6482446281b226a9a74cb17bfc28e98554cbc437 (diff)
nspawn: Communicate determined UID shift to parent
There is logic to determine the UID shift from the file-system, rather than having it be explicitly passed in. However, this needs to happen in the child process that sets up the mounts, as what's important is the UID of the mounted root, rather than the mount-point. Setting up the UID map needs to happen in the parent becuase the inner child needs to have been started, and the outer child is no longer able to access the uid_map file, since it lost access to it when setting up the mounts for the inner child. So we need to communicate the uid shift back out, along with the PID of the inner child process. Failing to communicate this means that the invalid UID shift, which is the value used to specify "this needs to be determined from the file system" is left invalid, so setting up the user namespace's UID shift fails.
Diffstat (limited to 'src/libsystemd-network/dhcp-packet.c')
0 files changed, 0 insertions, 0 deletions