diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2022-10-29 23:41:28 +0200 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2022-10-29 23:41:28 +0200 |
| commit | 5488f21affd32fdf23dcc8774dade982f61c4615 (patch) | |
| tree | b8cf768db57b65805e0d5750599737cdc80d879b /Cargo.toml | |
| parent | 1850849402f043e5eb6554774995b602a2d05d45 (diff) | |
Restrict filesystem access with landlock, if it is supported
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" |
