aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2013-04-19 15:00:33 -0400
committerEric Paris <eparis@redhat.com>2013-04-30 15:31:28 -0400
commitb122c3767c1d89763b4babca062c3171a71ed97c (patch)
tree6d11cbca5af63bd1ac4089895d8751f09af28823 /include
parent152f497b9b5940f81de3205465840a5eb316458e (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.h8
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
191extern void audit_log_task_context(struct audit_buffer *ab); 191extern int audit_log_task_context(struct audit_buffer *ab);
192extern void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk); 192extern void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk);
193extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp); 193extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp);
194extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); 194extern 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}
347static inline void audit_log_task_context(struct audit_buffer *ab) 347static int void audit_log_task_context(struct audit_buffer *ab)
348{ } 348{
349 return 0;
350}
349static inline void audit_log_task_info(struct audit_buffer *ab, 351static inline void audit_log_task_info(struct audit_buffer *ab,
350 struct task_struct *tsk) 352 struct task_struct *tsk)
351{ } 353{ }