mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] Pass dentry, not just name, in fsnotify creation hooks.
The audit hooks (to be added shortly) will want to see dentry->d_inode too, not just the name. Signed-off-by: Amy Griffis <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
90d526c074
commit
f38aa94224
3 changed files with 11 additions and 10 deletions
|
|
@ -515,7 +515,7 @@ static int audit_filter_rules(struct task_struct *tsk,
|
|||
case AUDIT_INODE:
|
||||
if (ctx) {
|
||||
for (j = 0; j < ctx->name_count; j++) {
|
||||
if (audit_comparator(ctx->names[j].ino, op, value)) {
|
||||
if ( audit_comparator(ctx->names[j].ino, op, value)) {
|
||||
++result;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue