summaryrefslogtreecommitdiffstats
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorMaYuming <mayuming77@hotmail.com>2021-07-11 10:57:47 +0800
committerPaul Moore <paul@paul-moore.com>2021-07-19 22:38:24 -0400
commitd97e99386ad0dcae08cb0f0c70efa806a2d4811c (patch)
tree915e4c8bcf01db924570022e5c8e5735b8ce8e31 /kernel/audit.h
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-d97e99386ad0dcae08cb0f0c70efa806a2d4811c.tar.bz2
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>
Diffstat (limited to 'kernel/audit.h')
-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