feat: Prevent loading Homebrew env if user is root.#914
feat: Prevent loading Homebrew env if user is root.#914RoyalOughtness merged 3 commits intosecureblue:livefrom
Conversation
Signed-off-by: Daniel Hast <[email protected]>
|
Looks like blue-build just decided to incorporate this patch: blue-build/modules@e66445d |
oh, even better! We can close this then |
|
Wait, something doesn't look quite right... is |
you're right... we need to remove ours |
|
I'll change this PR to do it, one sec. |
Signed-off-by: Daniel Hast <[email protected]>
This patches
/etc/profile.d/brew.shand/etc/profile.d/brew-bash-completions.shto skip loading the Homebrew shell environment if the user is root. This addresses part of #628 (the part about these two scripts sourcing non-locked-down files, not the part about auditing/etc/profile).