aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2022-10-29 23:41:28 +0200
committerReiner Herrmann <reiner@reiner-h.de>2022-10-29 23:41:28 +0200
commit5488f21affd32fdf23dcc8774dade982f61c4615 (patch)
treeb8cf768db57b65805e0d5750599737cdc80d879b /Cargo.toml
parent1850849402f043e5eb6554774995b602a2d05d45 (diff)
Restrict filesystem access with landlock, if it is supported
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 5 insertions, 0 deletions
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"