selinux: silence unused variable warning
authorMichael Benedict <michaelbt@live.com>
Wed, 11 Sep 2019 14:24:31 +0000 (00:24 +1000)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:47 +0000 (21:13 +0000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
security/selinux_n/hooks.c

index 4228f26c3cd8e4155a2e98b57ef2e2dff7b60a07..bc26cd8c056c7c264bdf25eda2a7ab60a5351a55 100644 (file)
@@ -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;