selinux: fix typo in filesystem name
authorHridya Valsaraju <hridya@google.com>
Sun, 2 Feb 2020 01:46:23 +0000 (17:46 -0800)
committerPaul Moore <paul@paul-moore.com>
Wed, 5 Feb 2020 23:23:13 +0000 (18:23 -0500)
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>
security/selinux/hooks.c

index d9e8b2131a6501a1233b43490ecd0c4463c649bf..6ef606a3c7f99d7865ccb19a9e018e0374bf171a 100644 (file)
@@ -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;