diff options
author | Eric Paris <eparis@redhat.com> | 2009-06-11 14:31:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-23 23:50:59 -0400 |
commit | cfcad62c74abfef83762dc05a556d21bdf3980a2 (patch) | |
tree | d253dbf8dfa4d31379dcd886cc1b41c69921acdd /kernel/auditsc.c | |
parent | ea7ae60bfe39aeedfb29571c47280bf0067ee5f3 (diff) |
audit: seperate audit inode watches into a subfile
In preparation for converting audit to use fsnotify instead of inotify we
seperate the inode watching code into it's own file. This is similar to
how the audit tree watching code is already seperated into audit_tree.c
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index b14d234b85f3..0b862cac6ca2 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -548,9 +548,9 @@ static int audit_filter_rules(struct task_struct *tsk, | |||
548 | } | 548 | } |
549 | break; | 549 | break; |
550 | case AUDIT_WATCH: | 550 | case AUDIT_WATCH: |
551 | if (name && rule->watch->ino != (unsigned long)-1) | 551 | if (name && audit_watch_inode(rule->watch) != (unsigned long)-1) |
552 | result = (name->dev == rule->watch->dev && | 552 | result = (name->dev == audit_watch_dev(rule->watch) && |
553 | name->ino == rule->watch->ino); | 553 | name->ino == audit_watch_inode(rule->watch)); |
554 | break; | 554 | break; |
555 | case AUDIT_DIR: | 555 | case AUDIT_DIR: |
556 | if (ctx) | 556 | if (ctx) |