fix: intercept pclose

Add Pclose to the exposed symbols list so our pclose implementation is
called.

This fixes hardened_popen_after_unsetenv test on FreeBSD.
This commit is contained in:
ShengYi Hung
2026-05-10 18:52:05 +08:00
committed by Laszlo Nagy
parent cf3ae636b8
commit 87445e6bd3
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ const INTERCEPT_FAMILY: &[&str] = &[
"execl",
"execlp",
"execle",
"pclose",
"posix_spawn",
"posix_spawnp",
"popen",
+1
View File
@@ -44,6 +44,7 @@ const SYMBOL_PROBES: &[(&str, &str)] = &[
("execlp", "unistd.h"),
("execle", "unistd.h"),
("posix_spawn", "spawn.h"),
("pclose", "stdio.h"),
("posix_spawnp", "spawn.h"),
("popen", "stdio.h"),
("system", "stdlib.h"),