diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-07 00:22:55 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-07 00:28:01 -0500 |
commit | 00e64315a17b5f681c5a9f0114ac18eb002faa27 (patch) | |
tree | f5c5f8cb108e2acda7fbfa6518e7ff280ef8c9de /localdecls.h | |
parent | tests: add static unlink tests (diff) | |
download | sandbox-00e64315a17b5f681c5a9f0114ac18eb002faa27.tar.gz sandbox-00e64315a17b5f681c5a9f0114ac18eb002faa27.tar.bz2 sandbox-00e64315a17b5f681c5a9f0114ac18eb002faa27.zip |
libsandbox: mark internal fds with O_CLOEXEC
We don't want to bleed these across forks/execs.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'localdecls.h')
-rw-r--r-- | localdecls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h index 590654d..674e848 100644 --- a/localdecls.h +++ b/localdecls.h @@ -49,6 +49,10 @@ # define MAP_ANONYMOUS MAP_ANON #endif +#ifndef O_CLOEXEC +# define O_CLOEXEC 0 +#endif + #if !HAVE_DECL_ENVIRON extern char **environ; #endif |