diff options
author | James Morris <jmorris@namei.org> | 2011-08-29 22:52:32 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-09-09 19:56:32 -0400 |
commit | 7b98a5857c3fa86cb0a7e5f893643491a8b5b425 (patch) | |
tree | 9e8b83d35a9c70f2c02853de808184871df3aba9 /security/selinux/hooks.c | |
parent | 0ff53f5ddbaebeac1c2735125901275acc1fecc6 (diff) |
selinux: sparse fix: fix several warnings in the security server code
Fix several sparse warnings in the SELinux security server code.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 5 |
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 @@ | |||
89 | #include "xfrm.h" | 89 | #include "xfrm.h" |
90 | #include "netlabel.h" | 90 | #include "netlabel.h" |
91 | #include "audit.h" | 91 | #include "audit.h" |
92 | #include "avc_ss.h" | ||
92 | 93 | ||
93 | #define NUM_SEL_MNT_OPTS 5 | 94 | #define NUM_SEL_MNT_OPTS 5 |
94 | 95 | ||
@@ -278,10 +279,6 @@ static void superblock_free_security(struct super_block *sb) | |||
278 | kfree(sbsec); | 279 | kfree(sbsec); |
279 | } | 280 | } |
280 | 281 | ||
281 | /* The security server must be initialized before | ||
282 | any labeling or access decisions can be provided. */ | ||
283 | extern int ss_initialized; | ||
284 | |||
285 | /* The file system's label must be initialized prior to use. */ | 282 | /* The file system's label must be initialized prior to use. */ |
286 | 283 | ||
287 | static const char *labeling_behaviors[6] = { | 284 | static const char *labeling_behaviors[6] = { |