diff options
author | 2019-12-27 21:13:34 +0100 | |
---|---|---|
committer | 2019-12-30 02:38:59 +0100 | |
commit | 8dd73b29fd99aedf9000e9e0c3278de8cf89ac5d (patch) | |
tree | e1ee4f761d6a51ee3da7aef5851042d53b4af1db /src/firejail/firejail.h | |
parent | Allow resolv.conf be written by dhclient (diff) | |
download | firejail-8dd73b29fd99aedf9000e9e0c3278de8cf89ac5d.tar.gz firejail-8dd73b29fd99aedf9000e9e0c3278de8cf89ac5d.tar.zst firejail-8dd73b29fd99aedf9000e9e0c3278de8cf89ac5d.zip |
Add sbox_run_v to run programs with explicit argument lists
Refactored sbox_run to pass the varargs argument list as an array to an
auxiliary function.
The auxiliary function allows running programs with dynamically built
argument lists.
Diffstat (limited to 'src/firejail/firejail.h')
-rw-r--r-- | src/firejail/firejail.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/firejail/firejail.h b/src/firejail/firejail.h index bfe680d24..0311968c3 100644 --- a/src/firejail/firejail.h +++ b/src/firejail/firejail.h | |||
@@ -815,6 +815,7 @@ void build_appimage_cmdline(char **command_line, char **window_title, int argc, | |||
815 | 815 | ||
816 | // run sbox | 816 | // run sbox |
817 | int sbox_run(unsigned filter, int num, ...); | 817 | int sbox_run(unsigned filter, int num, ...); |
818 | int sbox_run_v(unsigned filter, char * const arg[]); | ||
818 | 819 | ||
819 | // run_files.c | 820 | // run_files.c |
820 | void delete_run_files(pid_t pid); | 821 | void delete_run_files(pid_t pid); |