summaryrefslogtreecommitdiffstats
path: root/include/linux/audit.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r--include/linux/audit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 3a4f2415bb7c..97d0925454df 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -182,6 +182,9 @@ static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
182} 182}
183 183
184extern u32 audit_enabled; 184extern u32 audit_enabled;
185
186extern int audit_signal_info(int sig, struct task_struct *t);
187
185#else /* CONFIG_AUDIT */ 188#else /* CONFIG_AUDIT */
186static inline __printf(4, 5) 189static inline __printf(4, 5)
187void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, 190void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type,
@@ -235,6 +238,12 @@ static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
235} 238}
236 239
237#define audit_enabled AUDIT_OFF 240#define audit_enabled AUDIT_OFF
241
242static inline int audit_signal_info(int sig, struct task_struct *t)
243{
244 return 0;
245}
246
238#endif /* CONFIG_AUDIT */ 247#endif /* CONFIG_AUDIT */
239 248
240#ifdef CONFIG_AUDIT_COMPAT_GENERIC 249#ifdef CONFIG_AUDIT_COMPAT_GENERIC