aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exec_domain.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/exec_domain.c b/kernel/exec_domain.c
index 0dbeae3..0e8395c 100644
--- a/kernel/exec_domain.c
+++ b/kernel/exec_domain.c
@@ -68,7 +68,10 @@ lookup_exec_domain(unsigned int personality)
goto out;
}
-#ifdef CONFIG_MODULES
+ // According to https://groups.google.com/forum/#!topic/android-porting/0e5RrrvQ2MU
+ // this is not functional anyhow, and skipping this
+ // gets rid of multiple SELinux 'denied' messages.
+#if defined(CONFIG_MODULES) && !defined(CONFIG_ANDROID)
read_unlock(&exec_domains_lock);
request_module("personality-%d", pers);
read_lock(&exec_domains_lock);