diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-10-03 04:05:18 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-10-10 21:03:32 +0200 |
commit | 3639f17068ed40e4e208a6e218481d49817bbd56 (patch) | |
tree | 7860cd3bdea1d1be14a9c467c70438db1ee20b21 /kernel | |
parent | next: openrisc: Fix build (diff) | |
download | linux-3639f17068ed40e4e208a6e218481d49817bbd56.tar.xz linux-3639f17068ed40e4e208a6e218481d49817bbd56.zip |
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; |