mirror of
https://github.com/google/santa.git
synced 2026-04-24 03:00:12 -04:00
* Move santa_action_t to SNTCommonEnums and rename to SNTAction * Move likely and unlikely macros to a new BranchPrediction header * Remove SNTCommon.h. Move SantaVnode to its own header. * Add SantaVnodeHash * Fix build deps
46 lines
1.4 KiB
Objective-C
46 lines
1.4 KiB
Objective-C
/// Copyright 2015-2022 Google Inc. All rights reserved.
|
|
///
|
|
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
/// you may not use this file except in compliance with the License.
|
|
/// You may obtain a copy of the License at
|
|
///
|
|
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
///
|
|
/// Unless required by applicable law or agreed to in writing, software
|
|
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
/// See the License for the specific language governing permissions and
|
|
/// limitations under the License.
|
|
|
|
#import <EndpointSecurity/EndpointSecurity.h>
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "Source/common/SNTCommonEnums.h"
|
|
#import "Source/common/SantaVnode.h"
|
|
|
|
@class MOLCertificate;
|
|
|
|
///
|
|
/// Store information about executions from decision making for later logging.
|
|
///
|
|
@interface SNTCachedDecision : NSObject
|
|
|
|
- (instancetype)initWithEndpointSecurityFile:(const es_file_t *)esFile;
|
|
|
|
@property SantaVnode vnodeId;
|
|
@property SNTEventState decision;
|
|
@property NSString *decisionExtra;
|
|
@property NSString *sha256;
|
|
|
|
@property NSString *certSHA256;
|
|
@property NSString *certCommonName;
|
|
@property NSArray<MOLCertificate *> *certChain;
|
|
@property NSString *teamID;
|
|
|
|
@property NSString *quarantineURL;
|
|
|
|
@property NSString *customMsg;
|
|
@property BOOL silentBlock;
|
|
|
|
@end
|