projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ujail: add O_CLOEXEC flag to open() call
[project/procd.git]
/
jail
/
elf.c
diff --git
a/jail/elf.c
b/jail/elf.c
index b8f2cc549e8c33ce490d0a59bcef411e0263cd81..7c6076afb6a7f305695163ede2a796af73f9cd5e 100644
(file)
--- a/
jail/elf.c
+++ b/
jail/elf.c
@@
-81,7
+81,7
@@
int lib_open(char **fullpath, const char *file)
list_for_each_entry(p, &library_paths, list) {
snprintf(path, sizeof(path), "%s/%s", p->path, file);
- fd = open(path, O_RDONLY);
+ fd = open(path, O_RDONLY
|O_CLOEXEC
);
if (fd >= 0) {
*fullpath = strdup(path);
break;