From 0b168c7f2da50d29bd95d473671ea60711431b09 Mon Sep 17 00:00:00 2001 From: Lei wang Date: Mon, 3 Aug 2020 17:33:14 +0800 Subject: [PATCH] Revert "security: selinux: allow per-file labelling for binderfs" Current androidQ build still does not support binderfs selinux policy, this will cause binderfs mount failed. Revert it for this release. Change-Id: Ice22179cade43a8929d8bfdbea710bb0e176a1a7 Signed-off-by: Lei wang --- security/selinux/hooks.c | 1 - 1 file changed, 1 deletion(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 84f89ab1f2b5..3a16b388d6d0 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -870,7 +870,6 @@ static int selinux_set_mnt_opts(struct super_block *sb, !strcmp(sb->s_type->name, "tracefs") || !strcmp(sb->s_type->name, "sysfs") || !strcmp(sb->s_type->name, "pstore") || - !strcmp(sb->s_type->name, "binder") || !strcmp(sb->s_type->name, "cgroup") || !strcmp(sb->s_type->name, "cgroup2")) sbsec->flags |= SE_SBGENFS;