2 // SecLogSettingsServer.c
7 #include <securityd/SecLogSettingsServer.h>
8 #include "keychain/SecureObjectSync/SOSAccountPriv.h"
9 #include <Security/SecBase.h>
10 #include <Security/SecLogging.h>
11 #include "keychain/SecureObjectSync/SOSTransportCircle.h"
12 #include <utilities/debugging.h>
13 #include <utilities/SecCFWrappers.h>
14 #include <utilities/SecCFError.h>
17 SecCopyLogSettings_Server(CFErrorRef* error)
19 return CopyCurrentScopePlist();
23 SecSetXPCLogSettings_Server(CFTypeRef type, CFErrorRef* error)
27 ApplyScopeListForID(type, kScopeIDXPC);
29 } else if (isDictionary(type)) {
30 ApplyScopeDictionaryForID(type, kScopeIDXPC);
33 success = SecError(errSecParam, error, CFSTR("Unsupported CFType"));
40 SecSetCircleLogSettings_Server(CFTypeRef type, CFErrorRef* error)
43 SOSAccount* account = (__bridge SOSAccount*)SOSKeychainAccountGetSharedAccount();
45 success = SOSAccountPostDebugScope(account, type, error);