mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Add --no-rcs to compliance script #104
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @golbiga on GitHub.
https://scriptingosx.com/2024/03/zsh-scripts-and-root-escalations/
We should add
--no-rcsto the #!/bin/zsh shebang@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)