sd-bus: use SOCK_CLOEXEC on one more socket

This commit is contained in:
Lennart Poettering
2020-12-15 17:58:40 +01:00
parent fa8342228b
commit 68a3d91538
+1 -1
View File
@@ -49,7 +49,7 @@ int bus_container_connect_socket(sd_bus *b) {
bus_socket_setup(b);
if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, pair) < 0)
if (socketpair(AF_UNIX, SOCK_SEQPACKET|SOCK_CLOEXEC, 0, pair) < 0)
return -errno;
r = namespace_fork("(sd-buscntrns)", "(sd-buscntr)", NULL, 0, FORK_RESET_SIGNALS|FORK_DEATHSIG,