nspawn: also close uid shift socket in the parent
authorLennart Poettering <lennart@poettering.net>
Mon, 7 Sep 2015 23:22:46 +0000 (01:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Sep 2015 23:22:46 +0000 (01:22 +0200)
We should really close all parent sides of our child/parent socket
pairs.

src/nspawn/nspawn.c

index ad383e8..33943a4 100644 (file)
@@ -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);