This repository has been archived by the owner on Feb 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB mass storage blocking and remounting (#685)
* USB mass storage blocking. * Add the sync service and config key for enabling mass USB storage blocking * Update docs with the sync service key * Add ability to forcibly remount USBs with different flags * update EndpointSecurityTestUtil and tests that use it to properly handle multiple ES clients
- Loading branch information
Showing
23 changed files
with
722 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/// Copyright 2021 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 <DiskArbitration/DiskArbitration.h> | ||
#import <Foundation/Foundation.h> | ||
|
||
#include <EndpointSecurity/EndpointSecurity.h> | ||
|
||
/* | ||
* Manages DiskArbitration and EndpointSecurity to monitor/block/remount USB | ||
* storage devices. | ||
*/ | ||
@interface SNTDeviceManager : NSObject | ||
|
||
@property(nonatomic, readwrite) BOOL subscribed; | ||
@property(nonatomic, readwrite) BOOL blockUSBMount; | ||
@property(nonatomic, readwrite) NSArray<NSString *> *remountArgs; | ||
|
||
- (instancetype)init; | ||
- (void)listen; | ||
- (BOOL)subscribed; | ||
|
||
@end |
Oops, something went wrong.