diff options
-rw-r--r-- | init/Kconfig | 1 | ||||
-rw-r--r-- | security/selinux/Kconfig | 2 | ||||
-rw-r--r-- | security/selinux/avc.c | 2 |
3 files changed, 1 insertions, 4 deletions
diff --git a/init/Kconfig b/init/Kconfig index 8b7abae87bf9..38416a199def 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -169,7 +169,6 @@ config SYSCTL | |||
169 | config AUDIT | 169 | config AUDIT |
170 | bool "Auditing support" | 170 | bool "Auditing support" |
171 | depends on NET | 171 | depends on NET |
172 | default y if SECURITY_SELINUX | ||
173 | help | 172 | help |
174 | Enable auditing infrastructure that can be used with another | 173 | Enable auditing infrastructure that can be used with another |
175 | kernel subsystem, such as SELinux (which requires this for | 174 | kernel subsystem, such as SELinux (which requires this for |
diff --git a/security/selinux/Kconfig b/security/selinux/Kconfig index 502f78f13f5f..f636f53ca544 100644 --- a/security/selinux/Kconfig +++ b/security/selinux/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config SECURITY_SELINUX | 1 | config SECURITY_SELINUX |
2 | bool "NSA SELinux Support" | 2 | bool "NSA SELinux Support" |
3 | depends on SECURITY_NETWORK && NET && INET | 3 | depends on SECURITY_NETWORK && AUDIT && NET && INET |
4 | default n | 4 | default n |
5 | help | 5 | help |
6 | This selects NSA Security-Enhanced Linux (SELinux). | 6 | This selects NSA Security-Enhanced Linux (SELinux). |
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 53d6c7bbf564..ac5d69bb3377 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
@@ -43,13 +43,11 @@ static const struct av_perm_to_string | |||
43 | #undef S_ | 43 | #undef S_ |
44 | }; | 44 | }; |
45 | 45 | ||
46 | #ifdef CONFIG_AUDIT | ||
47 | static const char *class_to_string[] = { | 46 | static const char *class_to_string[] = { |
48 | #define S_(s) s, | 47 | #define S_(s) s, |
49 | #include "class_to_string.h" | 48 | #include "class_to_string.h" |
50 | #undef S_ | 49 | #undef S_ |
51 | }; | 50 | }; |
52 | #endif | ||
53 | 51 | ||
54 | #define TB_(s) static const char * s [] = { | 52 | #define TB_(s) static const char * s [] = { |
55 | #define TE_(s) }; | 53 | #define TE_(s) }; |