mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] collect sid of those who send signals to auditd
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
473ae30bc7
commit
e1396065e0
5 changed files with 45 additions and 25 deletions
|
|
@ -101,3 +101,14 @@ struct audit_netlink_list {
|
|||
int audit_send_list(void *);
|
||||
|
||||
extern int selinux_audit_rule_update(void);
|
||||
|
||||
#ifdef CONFIG_AUDITSYSCALL
|
||||
extern void __audit_signal_info(int sig, struct task_struct *t);
|
||||
static inline void audit_signal_info(int sig, struct task_struct *t)
|
||||
{
|
||||
if (unlikely(audit_pid && t->tgid == audit_pid))
|
||||
__audit_signal_info(sig, t);
|
||||
}
|
||||
#else
|
||||
#define audit_signal_info(s,t)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue