From 680345f09349f629dd2a1ace7072c6007291f02d Mon Sep 17 00:00:00 2001 From: z00788569 Date: Sat, 3 Aug 2024 12:34:52 +0800 Subject: [PATCH] add sharefs SE_SBGENFS flag Signed-off-by: z00788569 Change-Id: I28c34344ae27ae71411033b7ea7704fec9a3ef7c --- security/selinux/hooks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 86470a7b7e17..43f834799bc1 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -706,6 +706,7 @@ static int selinux_set_mnt_opts(struct super_block *sb, !strcmp(sb->s_type->name, "tracefs") || !strcmp(sb->s_type->name, "binder") || !strcmp(sb->s_type->name, "bpf") || + !strcmp(sb->s_type->name, "sharefs") || !strcmp(sb->s_type->name, "pstore")) sbsec->flags |= SE_SBGENFS; -- Gitee