diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-30 16:23:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-30 16:23:34 +0100 |
commit | 45071fcaa03eafc27352987fa2277b2792725036 (patch) | |
tree | d4ec9a98c8da0e86b0f4efe0d41cfa2825707fd2 /src/shared/missing.h | |
parent | ef309a681f4c761503e4cd4cc6884d7d6ef70436 (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/shared/missing.h')
-rw-r--r-- | src/shared/missing.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h index 7725e47298..0d7c55952e 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -74,7 +74,11 @@ #endif #ifndef MFD_ALLOW_SEALING -#define MFD_ALLOW_SEALING 0x0002ULL +#define MFD_ALLOW_SEALING 0x0002U +#endif + +#ifndef MFD_CLOEXEC +#define MFD_CLOEXEC 0x0001U #endif #ifndef IP_FREEBIND |