ksud: refactor module mount (#384)

This commit is contained in:
5ec1cff
2023-04-14 22:30:34 +08:00
committed by GitHub
parent 4466f9f8a3
commit 049736d6cb
5 changed files with 158 additions and 265 deletions
+3
View File
@@ -72,6 +72,8 @@ enum Debug {
/// Get kernel version
Version,
Mount,
/// For testing
Test,
}
@@ -187,6 +189,7 @@ pub fn run() -> Result<()> {
Ok(())
}
Debug::Su => crate::ksu::grant_root(),
Debug::Mount => event::mount_systemlessly(defs::MODULE_DIR),
Debug::Test => todo!(),
},
};