I would like to use homebrew on my new M1 mac, but I am concerned about some of the potential security vulnerabilities associated with /usr/local/. Basically this:
https://applehelpwriter.com/2018/03/21/how-homebrew-invites-users-to-get-pwned/
It looks like some people have mitigated this for Intel Macs by installing homebrew on a dedicated non-root user account and restricting /usr/local/ write access to that user, like this:
Improving security of homebrew installation (ownership of /usr/local)
Is a similar precaution necessary on the Apple Silicon version of homebrew, given that it now installs by default to /opt/homebrew/? If so, how would I go about setting that up?