Ignore set_context() error if magisktmp is /sbin

recreate_sbin() will bind mount original files in /sbin to tmpfs /sbin,
so we have no choice but just log here to let the loop continue.
This commit is contained in:
Wang Han 2025-06-17 20:44:52 +08:00 committed by John Wu
parent 690a5ac033
commit 810174ef73

View File

@ -85,7 +85,7 @@ pub(crate) fn restore_tmpcon() -> LoggedResult<()> {
while let Some(ref e) = dir.read()? {
if !e.is_symlink() {
e.resolve_path(&mut path)?;
path.set_secontext(SYSTEM_CON)?;
path.set_secontext(SYSTEM_CON).log_ok();
}
}