From f15b2805b522ef91b0b510d002ed282622fc1152 Mon Sep 17 00:00:00 2001 From: Michael Benedict Date: Thu, 12 Sep 2019 00:24:31 +1000 Subject: [PATCH] selinux: silence unused variable warning Signed-off-by: Michael Benedict --- security/selinux_n/hooks.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/security/selinux_n/hooks.c b/security/selinux_n/hooks.c index 4228f26c3cd8..bc26cd8c056c 100644 --- a/security/selinux_n/hooks.c +++ b/security/selinux_n/hooks.c @@ -439,18 +439,6 @@ static void superblock_free_security(struct super_block *sb) kfree(sbsec); } -/* The file system's label must be initialized prior to use. */ - -static const char *labeling_behaviors[7] = { - "uses xattr", - "uses transition SIDs", - "uses task SIDs", - "uses genfs_contexts", - "not configured for labeling", - "uses mountpoint labeling", - "uses native labeling", -}; - static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dentry); static inline int inode_doinit(struct inode *inode) @@ -563,10 +551,6 @@ static int sb_finish_set_opts(struct super_block *sb) } } - if (sbsec->behavior > ARRAY_SIZE(labeling_behaviors)) - printk(KERN_ERR "SELinux: initialized (dev %s, type %s), unknown behavior\n", - sb->s_id, sb->s_type->name); - sbsec->flags |= SE_SBINITIALIZED; if (selinux_is_sblabel_mnt(sb)) sbsec->flags |= SBLABEL_MNT; -- 2.20.1