diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-10-03 06:05:18 +0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-10-10 23:03:32 +0400 |
commit | 3639f17068ed40e4e208a6e218481d49817bbd56 (patch) | |
tree | 7860cd3bdea1d1be14a9c467c70438db1ee20b21 /kernel | |
parent | 29075feaf1f55e6b1aa4054b44bc141e8d5eab0b (diff) | |
download | linux-3639f17068ed40e4e208a6e218481d49817bbd56.tar.xz |
audit: put rule existence check in canonical order
Use same rule existence check order as audit_make_tree(), audit_to_watch(),
update_lsm_rule() for legibility.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 40ed9813d4b2..4a11697cf5b8 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -163,7 +163,7 @@ static inline int audit_to_inode(struct audit_krule *krule, struct audit_field *f) { if (krule->listnr != AUDIT_FILTER_EXIT || - krule->watch || krule->inode_f || krule->tree || + krule->inode_f || krule->watch || krule->tree || (f->op != Audit_equal && f->op != Audit_not_equal)) return -EINVAL; |