Cleanup unused code

This commit is contained in:
topjohnwu
2025-04-08 02:33:52 -07:00
committed by John Wu
parent d4a0286e13
commit eb54bc1fd7
4 changed files with 28 additions and 42 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ use argh::FromArgs;
use base::{
EarlyExitExt, LoggedResult, Utf8CStr, cmdline_logging, cstr, libc::umask, log_err, map_args,
};
use std::{ffi::c_char, io::Cursor};
use std::ffi::c_char;
#[derive(FromArgs)]
struct Cli {
@@ -116,7 +116,7 @@ pub unsafe extern "C" fn main(
}
for statement in &cli.polices {
sepol.load_rules_from_reader(&mut Cursor::new(statement));
sepol.load_rules(statement);
}
if cli.live && !sepol.to_file(cstr!("/sys/fs/selinux/load")) {