aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorJames Morris <[email protected]>2011-08-30 04:19:02 +0000
committerEric Paris <[email protected]>2012-01-05 23:52:52 +0000
commit2653812e14f4e16688ec8247d7fd290bdbbc4747 (patch)
treedabb2238a76e000b37374c69901afd6f99479631 /security/selinux/hooks.c
parentselinux: sparse fix: fix warnings in netlink code (diff)
downloadkernel-2653812e14f4e16688ec8247d7fd290bdbbc4747.tar.gz
kernel-2653812e14f4e16688ec8247d7fd290bdbbc4747.zip
selinux: sparse fix: fix several warnings in the security server cod
Fix several sparse warnings in the SELinux security server code. Signed-off-by: James Morris <[email protected]> Signed-off-by: Eric Paris <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 1206cee31c79..e545b9f67072 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -89,6 +89,7 @@
#include "xfrm.h"
#include "netlabel.h"
#include "audit.h"
+#include "avc_ss.h"
#define NUM_SEL_MNT_OPTS 5
@@ -278,10 +279,6 @@ static void superblock_free_security(struct super_block *sb)
kfree(sbsec);
}
-/* The security server must be initialized before
- any labeling or access decisions can be provided. */
-extern int ss_initialized;
-
/* The file system's label must be initialized prior to use. */
static const char *labeling_behaviors[6] = {