1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 00:27:34 +00:00

Ports: Sanitize environment before handling Ports

This keeps users from leaking their host environment variables (CFLAGS,
etc.) into Ports, and it keeps us from leaking Port-specific settings
into their dependencies.
This commit is contained in:
Tim Schumacher 2022-05-19 23:28:43 +02:00 committed by Andreas Kling
parent bdac8c53ea
commit 7550017f97
3 changed files with 15 additions and 0 deletions

8
Ports/.strip_env.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
exec env -i SERENITY_STRIPPED_ENV=1 \
MAKEJOBS="${MAKEJOBS:-}" \
IN_SERENITY_PORT_DEV="${IN_SERENITY_PORT_DEV:-}" \
SERENITY_ARCH="${SERENITY_ARCH:-}" \
SERENITY_TOOLCHAIN="${SERENITY_TOOLCHAIN:-}" \
"${@}"