]>
git.saurik.com Git - apple/security.git/blob - OSX/sec/securityd/SecLogSettingsServer.c
2 // SecLogSettingsServer.c
7 #include <securityd/SecLogSettingsServer.h>
8 #include <securityd/SOSCloudCircleServer.h>
9 #include <Security/SecBase.h>
10 #include <Security/SecLogging.h>
11 #include <Security/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 SOSAccountRef account
= SOSKeychainAccountGetSharedAccount();
45 success
= SOSAccountPostDebugScope(account
, type
, error
);