]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: also close uid shift socket in the parent 1195/head
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 ad383e876cc29275a7f70f3baf00b0d56ee1fe64..33943a4b2f0b0847505c56ed23277f707130450a 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);