{"id":13440019,"url":"https://github.com/fubarnetes/libjail-rs","last_synced_at":"2025-10-05T20:53:07.323Z","repository":{"id":32485767,"uuid":"133728186","full_name":"fubarnetes/libjail-rs","owner":"fubarnetes","description":"Rust implementation of a FreeBSD jail library","archived":false,"fork":false,"pushed_at":"2025-09-18T07:02:33.000Z","size":9602,"stargazers_count":58,"open_issues_count":12,"forks_count":12,"subscribers_count":7,"default_branch":"dev","last_synced_at":"2025-09-21T23:18:14.559Z","etag":null,"topics":["freebsd","freebsd-jail-manager","freebsd-jails","jails","rust","rust-library"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/jail","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fubarnetes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-16T22:09:26.000Z","updated_at":"2025-07-22T17:46:41.000Z","dependencies_parsed_at":"2024-04-29T10:01:15.402Z","dependency_job_id":"973ecedc-57bd-4074-ba53-9cb1cc79766d","html_url":"https://github.com/fubarnetes/libjail-rs","commit_stats":{"total_commits":179,"total_committers":11,"mean_commits":"16.272727272727273","dds":"0.24581005586592175","last_synced_commit":"b5680896283a35a8a99573a2d8e84c4c13413b1a"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/fubarnetes/libjail-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fubarnetes%2Flibjail-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fubarnetes%2Flibjail-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fubarnetes%2Flibjail-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fubarnetes%2Flibjail-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fubarnetes","download_url":"https://codeload.github.com/fubarnetes/libjail-rs/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fubarnetes%2Flibjail-rs/sbom","scorecard":{"id":413098,"data":{"date":"2025-08-11","repo":{"name":"github.com/fubarnetes/libjail-rs","commit":"50fb44d9a98b79eb6b5f601b5bd834eac83cd7f4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 2/19 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'dev'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T23:11:25.965Z","repository_id":32485767,"created_at":"2025-08-18T23:11:25.965Z","updated_at":"2025-08-18T23:11:25.965Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278518904,"owners_count":26000177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["freebsd","freebsd-jail-manager","freebsd-jails","jails","rust","rust-library"],"created_at":"2024-07-31T03:01:19.046Z","updated_at":"2025-10-05T20:53:07.278Z","avatar_url":"https://github.com/fubarnetes.png","language":"Rust","funding_links":[],"categories":["Libraries","Rust"],"sub_categories":["Platform specific"],"readme":"# libjail-rs\n\n[![Crates.io](https://img.shields.io/crates/v/jail.svg?style=flat-square)](https://crates.io/crates/jail)\n[![](https://tokei.rs/b1/github/fubarnetes/libjail-rs)](https://github.com/fubarnetes/libjail-rs)\n[![GitHub last commit](https://img.shields.io/github/last-commit/fubarnetes/libjail-rs.svg?style=flat-square)](https://github.com/fubarnetes/libjail-rs/commits/master)\n[![Gitter](https://img.shields.io/gitter/room/fubarnetes/libjail-rs.js.svg?style=flat-square)](https://gitter.im/fubarnetes/libjail-rs)\n[![Libraries.io for\nreleases](https://img.shields.io/librariesio/release/cargo/jail.svg?style=flat-square)](https://libraries.io/cargo/jail/)\n[![Crates.io](https://img.shields.io/crates/d/jail.svg?style=flat-square)](https://crates.io/crates/jail)\n[![Crates.io](https://img.shields.io/crates/l/jail.svg?style=flat-square)](https://crates.io/crates/jail)\n[![Docs: x86_64-unknown-freebsd](https://img.shields.io/badge/docs-x86__64--unknown--freebsd-blue.svg?style=flat-square)](https://fubarnetes.github.io/libjail-rs/x86_64-unknown-freebsd/jail/index.html)\n[![Docs: i686-unknown-freebsd](https://img.shields.io/badge/docs-i686--unknown--freebsd-blue.svg?style=flat-square)](https://fubarnetes.github.io/libjail-rs/i686-unknown-freebsd/jail/index.html)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffubarnetes%2Flibjail-rs.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffubarnetes%2Flibjail-rs?ref=badge_shield)\n\nlibjail-rs aims to be a rust implementation of the FreeBSD [jail(3)](https://www.freebsd.org/cgi/man.cgi?query=jail\u0026sektion=3\u0026manpath=FreeBSD+11.1-stable) library. While feature parity is a goal, a one-to-one implementation of all functions in [jail(3)](https://www.freebsd.org/cgi/man.cgi?query=jail\u0026sektion=3\u0026manpath=FreeBSD+11.1-stable) is not.\n\n# Is it any good?\n[Yes.](https://news.ycombinator.com/item?id=3067434)\n\n# Can I use it?\n\nThis library is still under heavy development, but seems to work so far.\nNo stability guarantees are made.\n\n# How do I use it?\n\n```\njail = \"*\"\n```\n\nExecute a command in a jail:\n```rust\nuse jail::process::Jailed;\nuse jail::StoppedJail;\nuse std::process::Command;\n\nfn main() {\n    let stopped = StoppedJail::new(\"/path/to/root\")\n        .name(\"alcatraz\")\n        .ip(\"127.0.1.2\".parse().unwrap())\n        .ip(\"fe80::2\".parse().unwrap * ())\n        .param(\"allow.raw_sockets\", param::Value::Int(1));\n\n    let running = stopped.start().expect(\"Couldn't start Jail\");\n\n    let output = Command::new(\"hostname\")\n        .jail(\u0026running)\n        .output()\n        .expect(\"Failed to execute command\");\n\n    println!(\"output: {:?}\", output.stdout);\n\n    running.kill();\n}\n```\n\n# Is it fast?\n\nThere are a few benchmarks included. Run them with `sudo cargo bench` (yes,\nstarting a jail requires being `root`).\n\nThese are some results on my laptop, on slow, spinning disks:\n\n```\ntest echo_helloworld_free       ... bench:     271,418 ns/iter (+/- 17,522)\ntest echo_helloworld_jailed     ... bench:     461,749 ns/iter (+/- 26,267)\ntest get_ips                    ... bench:      29,591 ns/iter (+/- 3,315)\ntest start_echo_helloworld_stop ... bench:     504,978 ns/iter (+/- 23,717)\ntest start_stop_ipjail          ... bench:      27,220 ns/iter (+/- 2,141)\ntest start_stop_ipv4jail        ... bench:      26,307 ns/iter (+/- 2,159)\ntest start_stop_ipv6jail        ... bench:      26,988 ns/iter (+/- 2,486)\ntest start_stop_jail            ... bench:      25,760 ns/iter (+/- 2,244)\n```\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffubarnetes%2Flibjail-rs.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffubarnetes%2Flibjail-rs?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffubarnetes%2Flibjail-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffubarnetes%2Flibjail-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffubarnetes%2Flibjail-rs/lists"}