Commit 9d8d094f authored by Christian Göttsche's avatar Christian Göttsche Committed by Paul Moore
Browse files

selinux: supply missing field initializers



Please clang by supplying the missing field initializers in the
secclass_map variable and sel_fill_super() function.

Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
[PM: tweak subj and commit description]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 2ef6fc99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ const struct security_class_mapping secclass_map[] = {
	{ "anon_inode", { COMMON_FILE_PERMS, NULL } },
	{ "io_uring", { "override_creds", "sqpoll", "cmd", NULL } },
	{ "user_namespace", { "create", NULL } },
	{ NULL }
	/* last one */ { NULL, {} }
};

#ifdef __KERNEL__ /* avoid this check when building host programs */
+1 −1
Original line number Diff line number Diff line
@@ -2001,7 +2001,7 @@ static int sel_fill_super(struct super_block *sb, struct fs_context *fc)
		[SEL_POLICY] = {"policy", &sel_policy_ops, S_IRUGO},
		[SEL_VALIDATE_TRANS] = {"validatetrans", &sel_transition_ops,
					S_IWUGO},
		/* last one */ {""}
		/* last one */ {"", NULL, 0}
	};

	ret = selinux_fs_info_create(sb);