summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2018-06-14 22:20:06 +0200
committerPaul Moore <paul@paul-moore.com>2018-06-28 17:44:31 +0200
commit4fa7f086993594e79f456a04656da2fcb5691209 (patch)
tree8041b614bc85127efabd737a2dbe285e273c6f6b /kernel/audit.c
parentaudit: check audit_enabled in audit_tree_log_remove_rule() (diff)
downloadlinux-4fa7f086993594e79f456a04656da2fcb5691209.tar.xz
linux-4fa7f086993594e79f456a04656da2fcb5691209.zip
audit: simplify audit_enabled check in audit_watch_log_rule_change()
Check the audit_enabled flag and bail immediately. This does not change the functionality, but brings the code format in line with similar checks in audit_tree_log_remove_rule(), audit_mark_log_rule_change(), and elsewhere in the audit code. See: https://github.com/linux-audit/audit-kernel/issues/50 Signed-off-by: Richard Guy Briggs <rgb@redhat.com> [PM: tweaked subject line] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.c')
0 files changed, 0 insertions, 0 deletions