sd-bus: use SOCK_CLOEXEC on one more socket

This commit is contained in:
Lennart Poettering 2020-12-11 12:04:11 +01:00
parent fa8342228b
commit 68a3d91538
1 changed files with 1 additions and 1 deletions

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,