summaryrefslogtreecommitdiff
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-06-29 11:13:28 -0400
committerEric Paris <eparis@redhat.com>2009-11-06 13:18:55 -0500
commit5e3567e49856940e0874ca9a9fa13492ca6ae28e (patch)
tree015b58c49a36e85521de1f6832f114f4e37e7fa3 /kernel/auditsc.c
parentd15e147fbfb539f685de08703828b91ca2aaec7b (diff)
Audit: clean up the audit_watch split
No real changes, just cleanup to the audit_watch split patch which we done with minimal code changes for easy review. Now fix interfaces to make things work better. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 267e484f0198..45d151af409f 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -549,9 +549,8 @@ static int audit_filter_rules(struct task_struct *tsk,
}
break;
case AUDIT_WATCH:
- if (name && audit_watch_inode(rule->watch) != (unsigned long)-1)
- result = (name->dev == audit_watch_dev(rule->watch) &&
- name->ino == audit_watch_inode(rule->watch));
+ if (name)
+ result = audit_watch_compare(rule->watch, name->ino, name->dev);
break;
case AUDIT_DIR:
if (ctx)