summaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorHridya Valsaraju <hridya@google.com>2020-02-02 02:46:23 +0100
committerPaul Moore <paul@paul-moore.com>2020-02-06 00:23:13 +0100
commita20456aef80fa6dda500b46c4bd04e39135097c6 (patch)
tree4a92c2e994fb6a487e27fb33be38c10870026ea3 /security/selinux/hooks.c
parentselinux: fix regression introduced by move_mount(2) syscall (diff)
downloadlinux-a20456aef80fa6dda500b46c4bd04e39135097c6.tar.xz
linux-a20456aef80fa6dda500b46c4bd04e39135097c6.zip
selinux: fix typo in filesystem name
Correct the filesystem name to "binder" to enable genfscon per-file labelling for binderfs. Fixes: 7a4b5194747 ("selinux: allow per-file labelling for binderfs") Signed-off-by: Hridya Valsaraju <hridya@google.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> [PM: slight style changes to the subj/description] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index d9e8b2131a65..6ef606a3c7f9 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -698,7 +698,7 @@ static int selinux_set_mnt_opts(struct super_block *sb,
if (!strcmp(sb->s_type->name, "debugfs") ||
!strcmp(sb->s_type->name, "tracefs") ||
- !strcmp(sb->s_type->name, "binderfs") ||
+ !strcmp(sb->s_type->name, "binder") ||
!strcmp(sb->s_type->name, "pstore"))
sbsec->flags |= SE_SBGENFS;