Skip to content

Commit

Permalink
selinux: fix typo in filesystem name
Browse files Browse the repository at this point in the history
Correct the filesystem name to "binder" to enable genfscon per-file
labelling for binderfs.

Fixes: 7a4b519 ("selinux: allow per-file labelling for binderfs")
Signed-off-by: Hridya Valsaraju <[email protected]>
Acked-by: Stephen Smalley <[email protected]>
[PM: slight style changes to the subj/description]
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
Hridya Valsaraju authored and pcmoore committed Feb 5, 2020
1 parent 98aa003 commit a20456a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a20456a

Please sign in to comment.