-
Notifications
You must be signed in to change notification settings - Fork 262
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
screensaver setting commands not functional on high sierra #15
Comments
Interesting. I'll look for a workaround. I was wondering if it was just my mac that's been acting up a bit or if my code was buggy. I was reading through https://blog.kolide.com/screensaver-security-on-macos-10-13-is-broken-a385726e2ae2 and saw
One potential solution could be to force (or ask nicely for) a restart at the program end. Opinions on that? |
Possibly, although there still is no reliable way to query the current settings and know if it really needs to be applied. While hacking on a custom security auditing script, I did have some success using AppleScript to launch the System Preferences, automate clicking on the right things, and reading out the values from the GUI, however this requires the user to give the script Accessibility permissions. Another approach might be to use osquery which I have just discovered, but haven't dug into that yet |
To some extent, the current settings may not matter.
|
Added this fix in #25. I think this is a good solution, so I'm going to close it for now. Feel free to open this again if you come across a better way to do this. |
stronghold/stronghold.py
Lines 164 to 165 in 4e0a859
These commands are not functional on High Sierra. See drduh/macOS-Security-and-Privacy-Guide#290 for more details
The text was updated successfully, but these errors were encountered: