mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-30 13:14:16 -04:00
conf: use close_range() before execvp()
Avoids leaking fds to the new program.
This commit is contained in:
parent
7fafc5f969
commit
208348ff2a
1 changed files with 2 additions and 0 deletions
|
|
@ -982,6 +982,8 @@ static int do_exec(struct pw_context *context, char *const *argv)
|
|||
for (p = argv; *p; ++p)
|
||||
spa_strbuf_append(&s, " '%s'", *p);
|
||||
|
||||
close_range(3, ~0U, CLOSE_RANGE_UNSHARE);
|
||||
|
||||
pw_log_info("exec%s", s.buffer);
|
||||
res = execvp(argv[0], argv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue