diff options
Diffstat (limited to 'include/linux/audit.h')
| -rw-r--r-- | include/linux/audit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 69c78477590b..9334fbef7bae 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
| @@ -117,6 +117,9 @@ struct filename; | |||
| 117 | 117 | ||
| 118 | extern void audit_log_session_info(struct audit_buffer *ab); | 118 | extern void audit_log_session_info(struct audit_buffer *ab); |
| 119 | 119 | ||
| 120 | #define AUDIT_OFF 0 | ||
| 121 | #define AUDIT_ON 1 | ||
| 122 | #define AUDIT_LOCKED 2 | ||
| 120 | #ifdef CONFIG_AUDIT | 123 | #ifdef CONFIG_AUDIT |
| 121 | /* These are defined in audit.c */ | 124 | /* These are defined in audit.c */ |
| 122 | /* Public API */ | 125 | /* Public API */ |
| @@ -202,7 +205,7 @@ static inline int audit_log_task_context(struct audit_buffer *ab) | |||
| 202 | static inline void audit_log_task_info(struct audit_buffer *ab, | 205 | static inline void audit_log_task_info(struct audit_buffer *ab, |
| 203 | struct task_struct *tsk) | 206 | struct task_struct *tsk) |
| 204 | { } | 207 | { } |
| 205 | #define audit_enabled 0 | 208 | #define audit_enabled AUDIT_OFF |
| 206 | #endif /* CONFIG_AUDIT */ | 209 | #endif /* CONFIG_AUDIT */ |
| 207 | 210 | ||
| 208 | #ifdef CONFIG_AUDIT_COMPAT_GENERIC | 211 | #ifdef CONFIG_AUDIT_COMPAT_GENERIC |
