4 Commits

Author SHA1 Message Date
Carlo Cabrera
d9c661a34e
Fix brew style errors 2025-08-13 18:07:17 +08:00
Carlo Cabrera
a4ea97016a
Improve error handling when determining parent process path 2025-08-13 17:54:29 +08:00
Carlo Cabrera
e8828c152d
Apply review suggestions for pid_path.rb
Co-authored-by: MikeMcQuaid <125011+MikeMcQuaid@users.noreply.github.com>
2025-08-13 13:55:33 +08:00
Carlo Cabrera
a7c124c2d0
brew.sh: enforce HOMEBREW_FORCE_BREW_WRAPPER more strictly
`HOMEBREW_FORCE_BREW_WRAPPER` can be used as a security/compliance
feature, but allowing it to be disabled by setting
`HOMEBREW_NO_FORCE_BREW_WRAPPER` leaves a pretty large hole in it that
allows it to be sidestepped.

Let's fix that by actually checking the path of the process that called
`brew`, and the verify that that path matches the configured value of
`HOMEBREW_NO_FORCE_BREW_WRAPPER`.
2025-08-09 03:15:53 +08:00