summaryrefslogtreecommitdiff
path: root/src/shared/elf-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-02-07 18:19:55 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-02-21 07:37:51 +0900
commit911f8f0183ef723737de3661b1dd042c7b2fcb6e (patch)
tree3cf14cfced68c9a8b1f25a8079c40d07945b8ca5 /src/shared/elf-util.c
parenta324a8958b06b577f1a82a3a3d5f696add2b1fb4 (diff)
downloadsystemd-911f8f0183ef723737de3661b1dd042c7b2fcb6e.tar.gz
process-util: rename FORK_NULL_STDIO -> FORK_REARRANGE_STDIO
And make safe_fork_full() takes fds to be assigned to stdio.
Diffstat (limited to 'src/shared/elf-util.c')
-rw-r--r--src/shared/elf-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/elf-util.c b/src/shared/elf-util.c
index 8da16f528f..98c47d9125 100644
--- a/src/shared/elf-util.c
+++ b/src/shared/elf-util.c
@@ -784,6 +784,7 @@ int parse_elf_object(int fd, const char *executable, bool fork_disable_dump, cha
* system call or interacting with the system in any way, besides reading from
* the file descriptor and writing into these four pipes. */
r = safe_fork_full("(sd-parse-elf)",
+ NULL,
(int[]){ fd, error_pipe[1], return_pipe[1], json_pipe[1] },
4,
FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_NEW_MOUNTNS|FORK_MOUNTNS_SLAVE|FORK_NEW_USERNS|FORK_WAIT|FORK_REOPEN_LOG,