projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73f0f0
)
audit: add header protection to kernel/audit.h
author
MaYuming
<mayuming77@hotmail.com>
Sun, 11 Jul 2021 02:57:47 +0000
(10:57 +0800)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/kernel/audit.h
b/kernel/audit.h
index b565ea16c0a508b4d007a30ae2b589cb71e791e7..d6a2c899a8dbfd38d70d9a96fcfdeaf79f14ba86 100644
(file)
--- 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