Skip to content

Commit b715f61

Browse files
committed
fix check
1 parent b5abaad commit b715f61

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub mod utils;
1010
pub mod sandbox;
1111

1212
use std::{env, path::PathBuf};
13+
use utils::landlock_support;
1314

1415
use cli::CliArgs;
1516
use once_cell::sync::Lazy;
@@ -61,7 +62,7 @@ fn run() -> Result<()> {
6162
// init_sandbox( write_dirs
6263
fn init_sandbox() {
6364

64-
if utils::landlock_support::is_landlock_supported() {
65+
if landlock_support::is_landlock_supported() {
6566
println!("Landlock is supported and can be enabled.");
6667

6768
let working_dir = get_current_working_dir().expect("Cannot get current working dir");

src/utils/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ mod fs;
1010
pub mod io;
1111
pub mod logger;
1212
mod question;
13+
pub mod landlock_support;
1314

1415
pub use self::{
1516
file_visibility::FileVisibilityPolicy,

0 commit comments

Comments
 (0)