Audit: split audit watch Kconfig
Audit watch should depend on CONFIG_AUDIT_SYSCALL and should select
FSNOTIFY. This splits the spagetti like mixing of audit_watch and
audit_filter code so they can be configured seperately.
Signed-off-by: Eric Paris <eparis@redhat.com>
diff --git a/init/Kconfig b/init/Kconfig
index 59f6254..05e932e 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -307,7 +307,6 @@
config AUDIT
bool "Auditing support"
depends on NET
- select FSNOTIFY
help
Enable auditing infrastructure that can be used with another
kernel subsystem, such as SELinux (which requires this for
@@ -323,6 +322,11 @@
can be used independently or with another kernel subsystem,
such as SELinux.
+config AUDIT_WATCH
+ def_bool y
+ depends on AUDITSYSCALL
+ select FSNOTIFY
+
config AUDIT_TREE
def_bool y
depends on AUDITSYSCALL