aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-05-25 10:19:47 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2006-06-20 05:25:21 -0400
commite1396065e0489f98b35021b97907ab4edbfb24e1 (patch)
treea276ea0a2ece9132d435adf1a1f82d0ada1ae938 /kernel/audit.h
parent473ae30bc7b1dda5c5791c773f95e9424ddfead9 (diff)
[PATCH] collect sid of those who send signals to auditd
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/audit.h')
-rw-r--r--kernel/audit.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/audit.h b/kernel/audit.h
index 8948fc1e9e54..52cb1e31d522 100644
--- a/kernel/audit.h
+++ b/kernel/audit.h
@@ -101,3 +101,14 @@ struct audit_netlink_list {
101int audit_send_list(void *); 101int audit_send_list(void *);
102 102
103extern int selinux_audit_rule_update(void); 103extern int selinux_audit_rule_update(void);
104
105#ifdef CONFIG_AUDITSYSCALL
106extern void __audit_signal_info(int sig, struct task_struct *t);
107static inline void audit_signal_info(int sig, struct task_struct *t)
108{
109 if (unlikely(audit_pid && t->tgid == audit_pid))
110 __audit_signal_info(sig, t);
111}
112#else
113#define audit_signal_info(s,t)
114#endif