endpointsecurity-rs

Crates.ioendpointsecurity-rs
lib.rsendpointsecurity-rs
version0.1.1
created_at2023-02-27 09:36:58.944808+00
updated_at2023-02-27 09:49:51.29485+00
descriptionSafe Rust bindings for Endpoint Security API
homepage
repositoryhttps://github.com/SubconsciousCompute/endpointsecurity-rs
max_upload_size
id795819
size666,866
Dilawar Singh (dilawar)

documentation

README

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
Commit count: 22

cargo fmt