Skip to content

Instantly share code, notes, and snippets.

@drewbug
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save drewbug/0586f8e1790be5c2aecb to your computer and use it in GitHub Desktop.
Save drewbug/0586f8e1790be5c2aecb to your computer and use it in GitHub Desktop.
security framework debugging
# trace debug-log macro
sudo dtrace -qn 'security_debug*:::log { printf("[%s] %s\n", copyinstr(arg0), copyinstr(arg1)); }'
# restart securityd
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.securityd.plist &&
sudo launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist
@darconeous
Copy link

Useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment