diff options
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index a3a50cca1efb..e2dd9c124140 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -188,7 +188,7 @@ static inline int audit_get_sessionid(struct task_struct *tsk) | |||
188 | return tsk->sessionid; | 188 | return tsk->sessionid; |
189 | } | 189 | } |
190 | 190 | ||
191 | extern void audit_log_task_context(struct audit_buffer *ab); | 191 | extern int audit_log_task_context(struct audit_buffer *ab); |
192 | extern void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk); | 192 | extern void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk); |
193 | extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp); | 193 | extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp); |
194 | extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); | 194 | extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); |
@@ -344,8 +344,10 @@ static inline int audit_get_sessionid(struct task_struct *tsk) | |||
344 | { | 344 | { |
345 | return -1; | 345 | return -1; |
346 | } | 346 | } |
347 | static inline void audit_log_task_context(struct audit_buffer *ab) | 347 | static int void audit_log_task_context(struct audit_buffer *ab) |
348 | { } | 348 | { |
349 | return 0; | ||
350 | } | ||
349 | static inline void audit_log_task_info(struct audit_buffer *ab, | 351 | static inline void audit_log_task_info(struct audit_buffer *ab, |
350 | struct task_struct *tsk) | 352 | struct task_struct *tsk) |
351 | { } | 353 | { } |