ksud: support module sepolicy.rule

This commit is contained in:
tiann
2023-01-31 21:58:55 +08:00
parent 62be9eb589
commit b7ff6b1a51
3 changed files with 33 additions and 3 deletions

View File

@@ -127,6 +127,11 @@ pub fn on_post_data_fs() -> Result<()> {
println!("mount {} to {}", target_update_img, module_dir);
mount_image(target_update_img, module_dir)?;
// load sepolicy.rule
if (crate::module::load_sepolicy_rule().is_err()) {
println!("load sepolicy.rule failed");
}
// mount systemless overlay
if let Err(e) = do_systemless_mount(module_dir) {
println!("do systemless mount failed: {}", e);