mirror of
https://github.com/rizsotto/Bear.git
synced 2026-05-28 00:20:45 +02:00
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:
committed by
Laszlo Nagy
parent
cf3ae636b8
commit
87445e6bd3
@@ -16,6 +16,7 @@ const INTERCEPT_FAMILY: &[&str] = &[
|
||||
"execl",
|
||||
"execlp",
|
||||
"execle",
|
||||
"pclose",
|
||||
"posix_spawn",
|
||||
"posix_spawnp",
|
||||
"popen",
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user