audit: add header protection to kernel/audit.h
authorMaYuming <mayuming77@hotmail.com>
Sun, 11 Jul 2021 02:57:47 +0000 (10:57 +0800)
committerPaul Moore <paul@paul-moore.com>
Tue, 20 Jul 2021 02:38:24 +0000 (22:38 -0400)
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>
kernel/audit.h

index b565ea16c0a508b4d007a30ae2b589cb71e791e7..d6a2c899a8dbfd38d70d9a96fcfdeaf79f14ba86 100644 (file)
@@ -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