diff --git a/Source/common/SNTConfigurator.m b/Source/common/SNTConfigurator.m index c8dda2733..7631b1d6b 100644 --- a/Source/common/SNTConfigurator.m +++ b/Source/common/SNTConfigurator.m @@ -13,7 +13,6 @@ /// limitations under the License. #import "Source/common/SNTConfigurator.h" -#import "Source/common/SNTCommonEnums.h" #include @@ -949,7 +948,11 @@ - (BOOL)blockUSBMount { } - (void)setSyncServerOverrideFileAccessAction:(NSString *)action { - [self updateSyncStateForKey:kOverrideFileAccessActionKey value:action]; + NSString *a = [action lowercaseString]; + if ([a isEqualToString:@"auditonly"] || [a isEqualToString:@"disable"] || + [a isEqualToString:@"none"] || [a isEqualToString:@""]) { + [self updateSyncStateForKey:kOverrideFileAccessActionKey value:action]; + } } - (SNTOverrideFileAccessAction)overrideFileAccessAction { diff --git a/docs/development/sync-protocol.md b/docs/development/sync-protocol.md index 77d830ff5..ea105677f 100644 --- a/docs/development/sync-protocol.md +++ b/docs/development/sync-protocol.md @@ -135,11 +135,12 @@ The JSON object has the following keys: | batch_size | YES | integer | Number of events to upload at a time | 128 | | full_sync_interval | YES | integer | Number of seconds between full syncs | 600 | | client_mode | YES | string | Operating mode to set for the client | either "MONITOR" or "LOCKDOWN" | -| allowed_path_regex | NO | string | Regular expression to allow a binary to execute from a path | "/Users/markowsk/foo/.*" | +| allowed_path_regex | NO | string | Regular expression to allow a binary to execute from a path | "/Users/markowsk/foo/.\*" | | blocked_path_regex | NO | string | Regular expression to block a binary from executing by path | "/tmp/" | | block_usb_mount | NO | boolean | Block USB mass storage devices | true | | remount_usb_mode | NO | string | Force USB mass storage devices to be remounted with the following permissions (see [configuration](../deployment/configuration.md)) | | | clean_sync | YES | boolean | Whether or not the rules should be dropped and synced entirely from the server | true | +| override_file_access_action | NO | string | Override file access config policy action. Must be:
1.) "Disable" to not log or block any rule violations.
2.) "AuditOnly" to only log violations, not block anything.
3.) "" (empty string) or "None" to not override the config. | "Disable", or "AuditOnly", or "" (empty string) | #### Example Preflight Response Payload