Add --no-rcs to compliance script #104

Closed
opened 2026-01-19 18:29:14 +00:00 by michael · 1 comment
Owner

Originally created by @golbiga on GitHub.

https://scriptingosx.com/2024/03/zsh-scripts-and-root-escalations/

We should add --no-rcs to the #!/bin/zsh shebang

Originally created by @golbiga on GitHub. https://scriptingosx.com/2024/03/zsh-scripts-and-root-escalations/ We should add `--no-rcs` to the #!/bin/zsh shebang
Author
Owner

@nihil-admirari commented on GitHub:

Maybe it would've been better to make sudo sanitise $HOME, which is what every Linux distro out there is doing?

Proposed fix: comment the following from /etc/sudoers (other environment variable may be worth sanitising too)

Defaults  env_keep += "HOME MAIL"
@nihil-admirari commented on GitHub: Maybe it would've been better to make sudo sanitise `$HOME`, which is what every Linux distro out there is doing? Proposed fix: comment the following from `/etc/sudoers` (other environment variable may be worth sanitising too) ``` Defaults env_keep += "HOME MAIL" ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#104