]> git.saurik.com Git - apple/security.git/blob - OSX/gk_reset_check/gk_reset_check.c
Security-58286.260.20.tar.gz
[apple/security.git] / OSX / gk_reset_check / gk_reset_check.c
1 //
2 // main.c
3 // gk_reset_check
4 //
5 // Created by Greg on 12/19/14.
6 //
7 //
8
9 #include <stdio.h>
10 #include <CoreFoundation/CoreFoundation.h>
11
12 int main(int argc, const char * argv[]) {
13 // Do not override configuration profiles on users machine
14 if (CFPreferencesAppValueIsForced(CFSTR("EnableAssessment"), CFSTR("com.apple.systempolicy.control")) == true ||
15 CFPreferencesAppValueIsForced(CFSTR("AllowIdentifiedDevelopers"), CFSTR("com.apple.systempolicy.control")) == true) {
16 return 1;
17 }
18 return 0;
19 }