mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 21:35:07 +00:00
[PATCH] add filtering by ppid
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f46038ff7d
commit
3c66251e57
@ -152,6 +152,7 @@
|
|||||||
#define AUDIT_SE_TYPE 15 /* security label type */
|
#define AUDIT_SE_TYPE 15 /* security label type */
|
||||||
#define AUDIT_SE_SEN 16 /* security label sensitivity label */
|
#define AUDIT_SE_SEN 16 /* security label sensitivity label */
|
||||||
#define AUDIT_SE_CLR 17 /* security label clearance label */
|
#define AUDIT_SE_CLR 17 /* security label clearance label */
|
||||||
|
#define AUDIT_PPID 18
|
||||||
|
|
||||||
/* These are ONLY useful when checking
|
/* These are ONLY useful when checking
|
||||||
* at syscall exit time (AUDIT_AT_EXIT). */
|
* at syscall exit time (AUDIT_AT_EXIT). */
|
||||||
|
@ -188,6 +188,10 @@ static int audit_filter_rules(struct task_struct *tsk,
|
|||||||
case AUDIT_PID:
|
case AUDIT_PID:
|
||||||
result = audit_comparator(tsk->pid, f->op, f->val);
|
result = audit_comparator(tsk->pid, f->op, f->val);
|
||||||
break;
|
break;
|
||||||
|
case AUDIT_PPID:
|
||||||
|
if (ctx)
|
||||||
|
result = audit_comparator(ctx->ppid, f->op, f->val);
|
||||||
|
break;
|
||||||
case AUDIT_UID:
|
case AUDIT_UID:
|
||||||
result = audit_comparator(tsk->uid, f->op, f->val);
|
result = audit_comparator(tsk->uid, f->op, f->val);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user