diff options
author | Eric Paris <eparis@redhat.com> | 2013-04-19 15:00:33 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-04-30 15:31:28 -0400 |
commit | b122c3767c1d89763b4babca062c3171a71ed97c (patch) | |
tree | 6d11cbca5af63bd1ac4089895d8751f09af28823 /include | |
parent | 152f497b9b5940f81de3205465840a5eb316458e (diff) |
audit: use a consistent audit helper to log lsm information
We have a number of places we were reimplementing the same code to write
out lsm labels. Just do it one darn place.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include')
-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 | { } |