diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-18 01:12:04 (GMT) |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 13:58:16 (GMT) |
commit | ae7b8f4108bcffb42173f867ce845268c7202d48 (patch) | |
tree | 049d357dcbffe597c77c534ea211c3efd26680e3 /kernel/auditsc.c | |
parent | b7ba83715317007962ee318587de92f14e9c3aaa (diff) | |
download | linux-fsl-qoriq-ae7b8f4108bcffb42173f867ce845268c7202d48.tar.xz |
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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 3828ad5..240063c 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) |