Skip to content

Instantly share code, notes, and snippets.

@darconeous
Forked from drewbug/secdebug
Last active August 29, 2015 14:11

Revisions

  1. darconeous renamed this gist Jul 14, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Drew Buglione revised this gist Oct 15, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions secdebug
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # trace debug-log macro
    dtrace -qn 'security_debug*:::log { printf("[%s] %s\n", copyinstr(arg0), copyinstr(arg1)); }'
    sudo dtrace -qn 'security_debug*:::log { printf("[%s] %s\n", copyinstr(arg0), copyinstr(arg1)); }'

    # restart securityd
    launchctl unload /System/Library/LaunchDaemons/com.apple.securityd.plist &&
    launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist
    sudo launchctl unload /System/Library/LaunchDaemons/com.apple.securityd.plist &&
    sudo launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist
  3. Drew Buglione revised this gist Oct 15, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion secdebug
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@
    dtrace -qn 'security_debug*:::log { printf("[%s] %s\n", copyinstr(arg0), copyinstr(arg1)); }'

    # restart securityd
    launchctl unload /System/Library/LaunchDaemons/com.apple.securityd.plist
    launchctl unload /System/Library/LaunchDaemons/com.apple.securityd.plist &&
    launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist
  4. Drew Buglione revised this gist Oct 14, 2014. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions secdebug
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,6 @@
    # trace debug-log macro
    dtrace -qn 'security_debug*:::log { printf("[%s] %s\n", copyinstr(arg0), copyinstr(arg1)); }'

    # restart securityd
    launchctl unload /System/Library/LaunchDaemons/com.apple.securityd.plist
    launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist
  5. Drew Buglione created this gist Oct 14, 2014.
    2 changes: 2 additions & 0 deletions secdebug
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # trace debug-log macro
    dtrace -qn 'security_debug*:::log { printf("[%s] %s\n", copyinstr(arg0), copyinstr(arg1)); }'