Debian Codegraph @

/

debian rust-landlock 0.4.4-1debian librust-landlock-dev debian librust-landlock+default-dev debian librust-landlock-0-dev debian librust-landlock-0+default-dev debian librust-landlock-0.4-dev debian librust-landlock-0.4+default-dev debian librust-landlock-0.4.4-dev debian librust-landlock-0.4.4+default-dev cargo landlock 0.4.4shell shell-project 0.0.0 debianjsonmakefilemarkdownrustrustrust-c-abishelltomlyaml 32 files · 548 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • rust-enumflags2 (librust-enumflags2-0.7+default-dev)
  • rust-libc (librust-libc-0.2+default-dev)
  • cargo, debhelper-compat, librust-thiserror-2+default-dev, libstd-rust-dev, rustc
README (full)

Rust Landlock library

Landlock is a security feature available since Linux 5.13. The goal is to enable to restrict ambient rights (e.g., global filesystem access) for a set of processes by creating safe security sandboxes as new security layers in addition to the existing system-wide access-controls. This kind of sandbox is expected to help mitigate the security impact of bugs, unexpected or malicious behaviors in applications. Landlock empowers any process, including unprivileged ones, to securely restrict themselves. More information about Landlock can be found in the official website.

This Rust crate provides a safe abstraction for the Landlock system calls along with some helpers.

Use cases

This crate is especially useful to protect users' data by sandboxing:

  • trusted applications dealing with potentially malicious data (e.g., complex file format, network request) that could exploit security vulnerabilities;
  • sandbox managers, container runtimes or shells launching untrusted applications.

Examples

A simple example can be found with the path_beneath_rules() helper. More complex examples can be found with the Ruleset documentation and the sandboxer example.

Crate documentation

Changelog

dir .github/
dir debian/
dir examples/
dir src/
file .cargo_vcs_info.json
file CHANGELOG.md
file CONTRIBUTING.md
file COPYRIGHT
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md