Skip to content

Commit d97e993

Browse files
MaYumingpcmoore
authored andcommitted
audit: add header protection to kernel/audit.h
Protect kernel/audit.h against multiple #include's. Signed-off-by: MaYuming <[email protected]> [PM: rewrite subj/description] Signed-off-by: Paul Moore <[email protected]>
1 parent e73f0f0 commit d97e993

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kernel/audit.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* Copyright 2005 IBM Corporation
77
*/
88

9+
#ifndef _KERNEL_AUDIT_H_
10+
#define _KERNEL_AUDIT_H_
11+
912
#include <linux/fs.h>
1013
#include <linux/audit.h>
1114
#include <linux/skbuff.h>
@@ -331,3 +334,5 @@ extern int audit_filter(int msgtype, unsigned int listtype);
331334

332335
extern void audit_ctl_lock(void);
333336
extern void audit_ctl_unlock(void);
337+
338+
#endif

0 commit comments

Comments
 (0)