2 releases
0.1.1 | Feb 27, 2023 |
---|---|
0.1.0 | Feb 27, 2023 |
#692 in Debugging
21 downloads per month
620KB
20K
SLoC
Endpoint security
This crate provides safe bindings to the Endpoint Security OSX Library.
Usage
add endpointsecurity-rs
as a dependency to your project
[dependencies]
endpointsecurity-rs = "0.1.1"
You will have to disable SIP if you want to use endpoint security while development without signing the executables with Apple.
With SIP disabled, you can use the following command to sign your executables with entitlements.
codesign --entitlements [entitlements_file] --force -s - [filename]
Examples
You can play around with examples in the crate to test out the crate. To build follow the commands below
# example
cargo build --example disallow_rename
codesign --entitlements Extension.entitlements --force -s - ./target/debug/examples/disallow_rename
./disallow_rename
lib.rs
:
endpointsecurity-rs
This crate provides safe bindings to the the OSX Endpoint Security API. This crates operators over crossbeam channels where you can subscribe to the events you're interested in.
Not all events are supported. If you want a event to be added, open an issue on our github repo.
Dependencies
~0.2–2.1MB
~41K SLoC