Skip to contentSkip to conversation

selinux: Fix typo in filesystem name

PATCH In review Hridya Valsaraju 3 participants 4 messages Feb 2, 2020 – Feb 5, 2020 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")

---

Hello,

I seem to have made the typo/mistake during a rebase. Sorry about that :(

Thanks,
Hridya

 security/selinux/hooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/selinux/hooks.c +1 -1
index 89fe3a805129..d67a80b0d8a8 100644
@@ -699,7 +699,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;
 
Signature · 1 line
2.25.0.341.g760bfbb309-goog
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Hridya Valsaraju

Correct the filesystem name to "binder" to enable
genfscon per-file labelling for binderfs.

Fixes 7a4b5194747 ("selinux: allow per-file labelling for binderfs")
Quoted 27 lines

---

Hello,

I seem to have made the typo/mistake during a rebase. Sorry about that :(

Thanks,
Hridya

  security/selinux/hooks.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
security/selinux/hooks.c +1 -1
index 89fe3a805129..d67a80b0d8a8 100644
@@ -699,7 +699,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;
 
maintainer
#2 lore raw
In reply to Hridya Valsaraju
Quoted 10 lines · Hridya Valsaraju

Correct the filesystem name to "binder" to enable
genfscon per-file labelling for binderfs.

Fixes 7a4b5194747 ("selinux: allow per-file labelling for binderfs")

---

Hello,

Quoted 8 lines

I seem to have made the typo/mistake during a rebase. Sorry about that :(

Thanks,
Hridya

 security/selinux/hooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Ooops :/

Thanks for the fix. I've merged this into selinux/stable-5.6, but due to some personal scheduling issues on my end I'm going to refrain from sending this to Linus until next week.

Quoted 15 lines
security/selinux/hooks.c +1 -2
index 89fe3a805129..d67a80b0d8a8 100644
@@ -699,7 +699,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;
 
--

2.25.0.341.g760bfbb309-goog

Signature · 2 lines
paul moore
www.paul-moore.com
#3 lore raw
Quoted 18 lines · Paul Moore
Quoted 16 lines · Hridya Valsaraju

Correct the filesystem name to "binder" to enable
genfscon per-file labelling for binderfs.

Fixes 7a4b5194747 ("selinux: allow per-file labelling for binderfs")

---

Hello,

I seem to have made the typo/mistake during a rebase. Sorry about that :(

Thanks,
Hridya

Quoted 8 lines
Quoted 2 lines
 security/selinux/hooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Ooops :/

Thanks for the fix. I've merged this into selinux/stable-5.6, but due to some personal scheduling issues on my end I'm going to refrain from sending this to Linus until next week.

Thank you Paul and Stephen!

Regards,
Hridya

Quoted 20 lines
Quoted 15 lines
security/selinux/hooks.c +1 -2
index 89fe3a805129..d67a80b0d8a8 100644
@@ -699,7 +699,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;
 
--
Quoted 1 line

2.25.0.341.g760bfbb309-goog

--
paul moore
www.paul-moore.com