Skip to content

Instantly share code, notes, and snippets.

@darconeous
Forked from drewbug/secdebug
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darconeous/244f3ab718240c9c627a to your computer and use it in GitHub Desktop.
Save darconeous/244f3ab718240c9c627a to your computer and use it in GitHub Desktop.
`securityd` debug logging #Security
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment