projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initd: use patch_stdio() for kmodloader stdio redirection
[project/procd.git]
/
jail
/
elf.c
diff --git
a/jail/elf.c
b/jail/elf.c
index
b8f2cc5
..
7c6076a
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);
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;
if (fd >= 0) {
*fullpath = strdup(path);
break;