diff options
author | Eric Paris <eparis@redhat.com> | 2012-10-10 10:38:47 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-07-25 13:03:09 -0400 |
commit | f936c6e502d3bc21b87c9830b3a24d1e07e6b6e1 (patch) | |
tree | e08e0e67e0b16c4e17dbf74ff8dd3c23bfbc55ae | |
parent | cfca0303da0e2c3f570cb5cfc7c373828e6c13a2 (diff) |
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>
-rw-r--r-- | security/selinux/include/objsec.h | 2 | ||||
-rw-r--r-- | security/selinux/include/security.h | 2 | ||||
-rw-r--r-- | security/selinux/ss/services.c | 2 |
3 files changed, 3 insertions, 3 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 { | |||
58 | u32 sid; /* SID of file system superblock */ | 58 | u32 sid; /* SID of file system superblock */ |
59 | u32 def_sid; /* default SID for labeling */ | 59 | u32 def_sid; /* default SID for labeling */ |
60 | u32 mntpoint_sid; /* SECURITY_FS_USE_MNTPOINT context for files */ | 60 | u32 mntpoint_sid; /* SECURITY_FS_USE_MNTPOINT context for files */ |
61 | unsigned int behavior; /* labeling behavior */ | 61 | unsigned short behavior; /* labeling behavior */ |
62 | unsigned short flags; /* which mount options were specified */ | 62 | unsigned short flags; /* which mount options were specified */ |
63 | struct mutex lock; | 63 | struct mutex lock; |
64 | struct list_head isec_head; | 64 | struct list_head isec_head; |
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index 9c424d8bd2e0..20830be6b61f 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h | |||
@@ -171,7 +171,7 @@ int security_get_allow_unknown(void); | |||
171 | #define SECURITY_FS_USE_NONE 5 /* no labeling support */ | 171 | #define SECURITY_FS_USE_NONE 5 /* no labeling support */ |
172 | #define SECURITY_FS_USE_MNTPOINT 6 /* use mountpoint labeling */ | 172 | #define SECURITY_FS_USE_MNTPOINT 6 /* use mountpoint labeling */ |
173 | 173 | ||
174 | int security_fs_use(const char *fstype, unsigned int *behavior, | 174 | int security_fs_use(const char *fstype, short unsigned int *behavior, |
175 | u32 *sid); | 175 | u32 *sid); |
176 | 176 | ||
177 | int security_genfs_sid(const char *fstype, char *name, u16 sclass, | 177 | int security_genfs_sid(const char *fstype, char *name, u16 sclass, |
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index b4feecc3fe01..603c638434bb 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c | |||
@@ -2329,7 +2329,7 @@ out: | |||
2329 | */ | 2329 | */ |
2330 | int security_fs_use( | 2330 | int security_fs_use( |
2331 | const char *fstype, | 2331 | const char *fstype, |
2332 | unsigned int *behavior, | 2332 | short unsigned int *behavior, |
2333 | u32 *sid) | 2333 | u32 *sid) |
2334 | { | 2334 | { |
2335 | int rc = 0; | 2335 | int rc = 0; |