aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/include
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2012-08-24 15:59:07 -0400
committerEric Paris <eparis@redhat.com>2013-07-25 13:03:21 -0400
commita64c54cf0811b8032fdab8c9d52576f0370837fa (patch)
tree2fb17477db2ba91fb2043ece739a898f369b1b36 /security/selinux/include
parent308ab70c465d97cf7e3168961dfd365535de21a6 (diff)
SELinux: pass a superblock to security_fs_use
Rather than passing pointers to memory locations, strings, and other stuff just give up on the separation and give security_fs_use the superblock. It just makes the code easier to read (even if not easier to reuse on some other OS) Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/selinux/include')
-rw-r--r--security/selinux/include/security.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h
index 1a73fcd51d56..01a0382c43ca 100644
--- a/security/selinux/include/security.h
+++ b/security/selinux/include/security.h
@@ -171,8 +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
174int security_fs_use(const char *fstype, short unsigned int *behavior, 174int security_fs_use(struct super_block *sb);
175 u32 *sid);
176 175
177int security_genfs_sid(const char *fstype, char *name, u16 sclass, 176int security_genfs_sid(const char *fstype, char *name, u16 sclass,
178 u32 *sid); 177 u32 *sid);