]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_codesigning/gke/gklist
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / gke / gklist
1 #!/usr/bin/python
2 #
3 # gklist - report Gatekeeper MessageTracer data since last reset
4 #
5 # mtdebug --reset
6 # ... exercise Gatekeeper ...
7 # gklist
8 #
9 import os
10 import plistlib
11
12
13 data = os.popen("mtdebug --plist", "r")
14 for mt in plistlib.readPlistFromString(data.read()):
15 if mt["com.apple.message.domain"] == "com.apple.security.assessment.outcome":
16 outcome = mt["com.apple.message.signature"]
17 id = mt["com.apple.message.signature2"]
18 print outcome, "--", id