]> git.saurik.com Git - apple/security.git/blobdiff - Security/utilities/src/debugging.c
Security-57031.30.12.tar.gz
[apple/security.git] / Security / utilities / src / debugging.c
index 2d421599602d0bce9032ea009f6ce2abaf1e78be..68ab7122b4e10ff7a0a11d11b5e2d000f84cb305 100644 (file)
@@ -379,6 +379,18 @@ static void setup_environment_scopes() {
     ApplyScopeListForIDC(cur_scope, kScopeIDEnvironment);
 }
 
+#define XPCSCOPESTRWANT "api,account,accountChange,circle,circleChange,circleCreat,flush,fresh,keygen,signing,talkwithkvs"
+#define XPCSCOPESTRDONTWANT "-event,http,item,keytrace,lockassertions,otr_keysetup,securityd,server,serverxpc,session,sync,titc,transport,trust,updates,xpc"
+static void setup_xpcdefault_scopes() {
+    
+    CFDictionaryRef noticeLogging = CFDictionaryCreateForCFTypes(kCFAllocatorDefault,
+                        CFSTR(ASL_STRING_NOTICE), CFSTR(XPCSCOPESTRDONTWANT), NULL);
+    
+    ApplyScopeDictionaryForID(noticeLogging, kScopeIDXPC);
+    
+    CFReleaseNull(noticeLogging);
+}
+
 void __security_debug_init(void) {
     static dispatch_once_t sdOnceToken;
 
@@ -386,10 +398,10 @@ void __security_debug_init(void) {
         setup_environment_scopes();
         setup_config_settings();
         setup_defaults_settings();
+        //setup_xpcdefault_scopes();
     });
 }
 
-
 // MARK: Log handler recording (e.g. grabbing security logging and sending it to test results).
 static void clean_aslclient(void *client)
 {