mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] add filtering by ppid
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
f46038ff7d
commit
3c66251e57
2 changed files with 5 additions and 0 deletions
|
|
@ -188,6 +188,10 @@ static int audit_filter_rules(struct task_struct *tsk,
|
|||
case AUDIT_PID:
|
||||
result = audit_comparator(tsk->pid, f->op, f->val);
|
||||
break;
|
||||
case AUDIT_PPID:
|
||||
if (ctx)
|
||||
result = audit_comparator(ctx->ppid, f->op, f->val);
|
||||
break;
|
||||
case AUDIT_UID:
|
||||
result = audit_comparator(tsk->uid, f->op, f->val);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue