Skip to content

Commit

Permalink
audit: add header protection to kernel/audit.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MaYuming authored and Paul Moore committed Jul 20, 2021
1 parent e73f0f0 commit d97e993
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernel/audit.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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

0 comments on commit d97e993

Please sign in to comment.