mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:30:52 +07:00
audit: update AUDIT_INODE filter rule to comparator function
It appears this one comparison function got missed inf368c07d
(and9c937dcc
). Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
21b85c31d2
commit
db510fc5cd
@ -566,7 +566,7 @@ static int audit_filter_rules(struct task_struct *tsk,
|
||||
break;
|
||||
case AUDIT_INODE:
|
||||
if (name)
|
||||
result = (name->ino == f->val);
|
||||
result = audit_comparator(name->ino, f->op, f->val);
|
||||
else if (ctx) {
|
||||
list_for_each_entry(n, &ctx->names_list, list) {
|
||||
if (audit_comparator(n->ino, f->op, f->val)) {
|
||||
|
Loading…
Reference in New Issue
Block a user