ksud: fix compile err
This commit is contained in:
@@ -6,7 +6,7 @@ use std::path::Path;
|
||||
pub fn set_sepolicy(pkg: String, policy: String) -> Result<()> {
|
||||
ensure_dir_exists(defs::PROFILE_SELINUX_DIR)?;
|
||||
let policy_file = Path::new(defs::PROFILE_SELINUX_DIR).join(pkg);
|
||||
std::fs::write(policy_file, policy)?;
|
||||
std::fs::write(&policy_file, policy)?;
|
||||
sepolicy::apply_file(&policy_file)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user