summaryrefslogtreecommitdiffstats
path: root/security/selinux/include/objsec.h
diff options
context:
space:
mode:
authorEric Paris2012-10-10 16:38:47 +0200
committerEric Paris2013-07-25 19:03:09 +0200
commitf936c6e502d3bc21b87c9830b3a24d1e07e6b6e1 (patch)
treee08e0e67e0b16c4e17dbf74ff8dd3c23bfbc55ae /security/selinux/include/objsec.h
parentSELinux: renumber the superblock options (diff)
downloadkernel-qcow2-linux-f936c6e502d3bc21b87c9830b3a24d1e07e6b6e1.tar.gz
kernel-qcow2-linux-f936c6e502d3bc21b87c9830b3a24d1e07e6b6e1.tar.xz
kernel-qcow2-linux-f936c6e502d3bc21b87c9830b3a24d1e07e6b6e1.zip
SELinux: change sbsec->behavior to short
We only have 6 options, so char is good enough, but use a short as that packs nicely. This shrinks the superblock_security_struct just a little bit. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/selinux/include/objsec.h')
-rw-r--r--security/selinux/include/objsec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h
index fe99f64a1d54..b1dfe1049450 100644
--- a/security/selinux/include/objsec.h
+++ b/security/selinux/include/objsec.h
@@ -58,7 +58,7 @@ struct superblock_security_struct {
u32 sid; /* SID of file system superblock */
u32 def_sid; /* default SID for labeling */
u32 mntpoint_sid; /* SECURITY_FS_USE_MNTPOINT context for files */
- unsigned int behavior; /* labeling behavior */
+ unsigned short behavior; /* labeling behavior */
unsigned short flags; /* which mount options were specified */
struct mutex lock;
struct list_head isec_head;