mirror of
https://github.com/google/santa.git
synced 2026-04-24 03:00:12 -04:00
* Support CDHash rules * Ensure hardened runtime for cdhash eval. Update docs. * minor fixups * Clarify docs
54 lines
1.7 KiB
Objective-C
54 lines
1.7 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)init;
|
|
- (instancetype)initWithEndpointSecurityFile:(const es_file_t *)esFile;
|
|
- (instancetype)initWithVnode:(SantaVnode)vnode NS_DESIGNATED_INITIALIZER;
|
|
|
|
@property SantaVnode vnodeId;
|
|
@property SNTEventState decision;
|
|
@property SNTClientMode decisionClientMode;
|
|
@property NSString *decisionExtra;
|
|
@property NSString *sha256;
|
|
|
|
@property NSString *certSHA256;
|
|
@property NSString *certCommonName;
|
|
@property NSArray<MOLCertificate *> *certChain;
|
|
@property NSString *teamID;
|
|
@property NSString *signingID;
|
|
@property NSString *cdhash;
|
|
@property NSDictionary *entitlements;
|
|
@property BOOL entitlementsFiltered;
|
|
|
|
@property NSString *quarantineURL;
|
|
|
|
@property NSString *customMsg;
|
|
@property NSString *customURL;
|
|
@property BOOL silentBlock;
|
|
|
|
@end
|