{"id":65554,"library":"pledge","title":"Pledge","description":"Rust binding to OpenBSD's pledge(2) interface for process sandboxing.","status":"active","version":"0.4.2","language":"rust","source_language":null,"source_url":"https://github.com/i80and/pledge-rs","tags":["openbsd","sandbox","security","pledge"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\npledge = \"0.4.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add pledge","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"pledge","correct":"use pledge::pledge;"}],"quickstart":{"code":"use pledge::pledge;\n\nfn main() {\n    pledge!(\"stdio rpath\").expect(\"pledge failed\");\n    println!(\"Process restricted\");\n}","lang":"rust","description":"Restricts the process to stdio and read-only file access."},"warnings":[{"fix":"Use conditional compilation or alternative sandboxing on other platforms","message":"Only works on OpenBSD","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'2':8 'bind':3 'interfac':9 'openbsd':5,13 'pledg':1,7,16 'process':11 'rust':2 'sandbox':12,14 'secur':15","created_at":"2026-06-17T17:11:59.777679+00:00","updated_at":"2026-06-17T17:11:59.777679+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/i80and/pledge-rs","github":"https://github.com/i80and/pledge-rs","docs":"https://docs.rs/pledge/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}