]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_codesigning/gke/gkreport
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / gke / gkreport
1 #!/bin/bash
2 #
3 # gkreport - report Gatekeeper state to MessageTracer
4 #
5 main=$(/usr/sbin/spctl --status)
6 gk=$(/usr/sbin/spctl --test-devid-status)
7 /usr/bin/syslog -s -k \
8 com.apple.message.domain com.apple.security.assessment.current_state \
9 com.apple.message.signature "$main" \
10 com.apple.message.signature2 "$gk" \
11 Message "Gatekeeper state $main/$gk"