Skip to content

Commit bbd6597

Browse files
committed
feat(sandbox): add landlock for sandboxing
1 parent af13bb6 commit bbd6597

4 files changed

Lines changed: 537 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 35 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ diesel_migrations = { version = "2.3.1", features = ["sqlite"] }
3434
documented = "0.9.2"
3535
fast-glob = "1.0.0"
3636
image = { version = "0.25.9", default-features = false, features = ["png"] }
37+
landlock = "0.4.4"
3738
libsqlite3-sys = { version = ">=0.30.1,<0.36.0", features = [ "bundled" ]}
3839
miette = { version = "7.6.0", features = ["fancy"] }
3940
nix = { version = "0.30.1", features = ["ioctl", "term", "user"] }

crates/soar-core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pub mod constants;
44
pub mod database;
55
pub mod error;
66
pub mod package;
7+
pub mod sandbox;
78
pub mod utils;
89

910
pub type SoarResult<T> = std::result::Result<T, SoarError>;

0 commit comments

Comments
 (0)