summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-08 01:22:46 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-08 01:22:46 +0200
commit82116c43298c9e638742a87072fa29176104edf4 (patch)
tree39c8ec1b0993c37e0ae6e4dc072791bb91b31fa3 /src
parent76d448820e9e6b11dbdc5778802bda6f998212b4 (diff)
nspawn: also close uid shift socket in the parent
We should really close all parent sides of our child/parent socket pairs.
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index ad383e876c..33943a4b2f 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3359,6 +3359,7 @@ int main(int argc, char *argv[]) {
kmsg_socket_pair[1] = safe_close(kmsg_socket_pair[1]);
rtnl_socket_pair[1] = safe_close(rtnl_socket_pair[1]);
pid_socket_pair[1] = safe_close(pid_socket_pair[1]);
+ uid_shift_socket_pair[1] = safe_close(uid_shift_socket_pair[1]);
/* Wait for the outer child. */
r = wait_for_terminate_and_warn("namespace helper", pid, NULL);