From 810174ef734eb67c36e362d854f98b212386e599 Mon Sep 17 00:00:00 2001 From: Wang Han <416810799@qq.com> Date: Tue, 17 Jun 2025 20:44:52 +0800 Subject: [PATCH] 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. --- native/src/core/selinux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/core/selinux.rs b/native/src/core/selinux.rs index feeeabd64..1cd248004 100644 --- a/native/src/core/selinux.rs +++ b/native/src/core/selinux.rs @@ -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(); } }