| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
|
| 6 |
int dlopen_dw(int log_level); |
| 7 |
int dlopen_elf(int log_level); |
| 8 |
|
| 9 |
bool dlopen_dw_has_dwfl_set_sysroot(void); |
| 10 |
|
| 11 |
/* Parse an ELF object in a forked process, so that errors while iterating over |
| 12 |
* untrusted and potentially malicious data do not propagate to the main caller's process. |
| 13 |
* If fork_disable_dump, the child process will not dump core if it crashes. */ |
| 14 |
int parse_elf_object( |
| 15 |
int fd, |
| 16 |
const char *executable, |
| 17 |
const char *root, |
| 18 |
bool fork_disable_dump, |
| 19 |
char **ret, |
| 20 |
sd_json_variant **ret_package_metadata, |
| 21 |
sd_json_variant **ret_dlopen_metadata); |