From: Michael Benedict Date: Wed, 11 Sep 2019 14:24:31 +0000 (+1000) Subject: selinux: silence unused variable warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72f4853c193655d0b13e7fdcdf6b1bf44dcc4a54;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git selinux: silence unused variable warning Signed-off-by: Michael Benedict --- 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;