summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-30 16:23:34 +0100
committerLennart Poettering <lennart@poettering.net>2014-10-30 16:23:34 +0100
commit45071fcaa03eafc27352987fa2277b2792725036 (patch)
treed4ec9a98c8da0e86b0f4efe0d41cfa2825707fd2 /src/libsystemd/sd-bus/bus-kernel.c
parentef309a681f4c761503e4cd4cc6884d7d6ef70436 (diff)
memfd: always create our memfds with CLOEXEC set
We really shouldn't create fds ever that have the flag unset.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd/sd-bus/bus-kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
index 0327614742..3f8b0ab65a 100644
--- a/src/libsystemd/sd-bus/bus-kernel.c
+++ b/src/libsystemd/sd-bus/bus-kernel.c
@@ -1129,7 +1129,7 @@ int bus_kernel_pop_memfd(sd_bus *bus, void **address, size_t *mapped, size_t *al
if (!g)
return -ENOMEM;
- r = memfd_create(g, MFD_ALLOW_SEALING);
+ r = memfd_create(g, MFD_ALLOW_SEALING|MFD_CLOEXEC);
if (r < 0)
return -errno;