summaryrefslogtreecommitdiff
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2023-07-20 01:50:32 +0000
committerPaul Moore <paul@paul-moore.com>2023-07-20 15:06:58 -0400
commitbe4187faa8a48cfef572eba9e3882fb2134bdf67 (patch)
tree30af3da1d77de9647913eafba86df63617a78704 /kernel/audit.c
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
audit: include security.h unconditionally
The ifdef-else logic is already in the header file, so include it unconditionally, no functional changes here. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> [PM: fixed misspelling in the subject] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 9bc0b0301198..45b2fb1e45af 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -53,9 +53,7 @@
#include <net/sock.h>
#include <net/netlink.h>
#include <linux/skbuff.h>
-#ifdef CONFIG_SECURITY
#include <linux/security.h>
-#endif
#include <linux/freezer.h>
#include <linux/pid_namespace.h>
#include <net/netns/generic.h>