summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaYuming <mayuming77@hotmail.com>2021-07-11 04:57:47 +0200
committerPaul Moore <paul@paul-moore.com>2021-07-20 04:38:24 +0200
commitd97e99386ad0dcae08cb0f0c70efa806a2d4811c (patch)
tree915e4c8bcf01db924570022e5c8e5735b8ce8e31
parentLinux 5.14-rc1 (diff)
downloadlinux-d97e99386ad0dcae08cb0f0c70efa806a2d4811c.tar.xz
linux-d97e99386ad0dcae08cb0f0c70efa806a2d4811c.zip
audit: add header protection to kernel/audit.h
Protect kernel/audit.h against multiple #include's. Signed-off-by: MaYuming <mayuming77@hotmail.com> [PM: rewrite subj/description] Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--kernel/audit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/audit.h b/kernel/audit.h
index b565ea16c0a5..d6a2c899a8db 100644
--- a/kernel/audit.h
+++ b/kernel/audit.h
@@ -6,6 +6,9 @@
* Copyright 2005 IBM Corporation
*/
+#ifndef _KERNEL_AUDIT_H_
+#define _KERNEL_AUDIT_H_
+
#include <linux/fs.h>
#include <linux/audit.h>
#include <linux/skbuff.h>
@@ -331,3 +334,5 @@ extern int audit_filter(int msgtype, unsigned int listtype);
extern void audit_ctl_lock(void);
extern void audit_ctl_unlock(void);
+
+#endif