From 5488f21affd32fdf23dcc8774dade982f61c4615 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 29 Oct 2022 23:41:28 +0200 Subject: Restrict filesystem access with landlock, if it is supported --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 9fcd1b9..3b7a709 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,11 @@ panic = 'abort' nix = { version = "0.25.0", default-features = false, features = ["fs", "user"] } getopts = "0.2" threadpool = "1.0" +landlock = { git = "https://github.com/landlock-lsm/rust-landlock.git", optional = true } + +[features] +default = ["landlock"] +landlock = ["dep:landlock"] [[bin]] name = "rtftpd" -- cgit v1.2.3