Please find attached a patch for seandroid that updates the new prefix matching code in #if DEBUG to stop Zygote crashing.
Richard
From f633a423c92049eb21220b69b3ef456c255f2176 Mon Sep 17 00:00:00 2001 From: Richard Haines <richard_c_hai...@btinternet.com> Date: Sun, 6 Oct 2013 17:21:15 +0100 Subject: [PATCH] libselinux: Fix zygote crash when debug enabled Update the prefix matching code in #if DEBUG otherwise zygote will crash. --- src/android.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android.c b/src/android.c index 52fb0e0..6c64681 100644 --- a/src/android.c +++ b/src/android.c @@ -305,8 +305,8 @@ int selinux_android_seapp_context_reload(void) cur = seapp_contexts[i]; selinux_log(SELINUX_INFO, "%s: isSystemServer=%s user=%s seinfo=%s name=%s sebool=%s -> domain=%s type=%s level=%s levelFrom=%s", __FUNCTION__, - cur->isSystemServer ? "true" : "false", cur->user, - cur->seinfo, cur->name, cur->sebool, cur->domain, + cur->isSystemServer ? "true" : "false", cur->user.str, + cur->seinfo, cur->name.str, cur->sebool, cur->domain, cur->type, cur->level, levelFromName[cur->levelFrom]); } -- 1.8.3.1