Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this work with macOS 12.6? #11

Open
deviantintegral opened this issue Sep 16, 2022 · 5 comments
Open

Does this work with macOS 12.6? #11

deviantintegral opened this issue Sep 16, 2022 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@deviantintegral
Copy link

I just installed this via homebrew, and it appears sandboxing is preventing sed from editing /private/etc/pam.d/sudo. I get the following in the console when running sudo brew services start sudo-touchid:

default 17:29:18.707309-0400 sudo root : PWD=/ ; USER=root ; COMMAND=/usr/bin/sed -E -i .bak 1s/^(#.*)$/\1
auth sufficient pam_tid.so/ /etc/pam.d/sudo
info 17:29:18.731118-0400 kernel sandboxd rejected approval request from sed for kTCCServiceSystemPolicySysAdminFiles (/private/etc/pam.d/.!94543!sudo): denied

@artginzburg
Copy link
Owner

Hell. I don't get this error in 12.6. I wonder how to reproduce it.

Do you receive the same error if you try running the command manually?

@deviantintegral
Copy link
Author

No, I don't get the error when running in an iTerm window.

I tested logging out and back in just in case there was some issue with the new launchagent and sandboxing, but no luck there.

@artginzburg artginzburg added bug Something isn't working help wanted Extra attention is needed labels Oct 4, 2022
@artginzburg
Copy link
Owner

By quick googling ("macos kernel sandboxd rejected approval request"), I found possible solutions, like giving Full Disk Access to the script. Another idea is to try adding --no-quarantine flag to the brew install command.

I can't test whether this fixes the issue since I can't reproduce the error, even though SIP is enabled on my system.

Also, you may check the "Allow apps downloaded from" setting in System Preferences > Security & Privacy > General.

@pointum
Copy link

pointum commented Oct 7, 2022

@deviantintegral Try this Terminal command to reset relevant permissions:

tccutil reset SystemPolicySysAdminFiles

@deviantintegral
Copy link
Author

--no-quarantine flag

No luck here, or with granting full disk access.

Also, you may check the "Allow apps downloaded from" setting in System Preferences > Security & Privacy > General.

This is set to App Store and Identified Developers.

tccutil

TIL'ed! It figures its man page is spartan. This reset correctly, but I still get the above error.

On restart, I took a deeper look at the console logs: https://gist.github.com/deviantintegral/9be33c288ed98e23572c305840d2e354

I wonder if this error is causing stricter sandboxing? I'm not sure exactly what signature its referring to though given this is a shell script:

debug 09:20:00.863368-0400 syspolicyd signatures didn't match: 1647255843, 1647275625, /usr/local/Cellar/sudo-touchid/0.4/bin/sudo-touchid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants