]> git.baikalelectronics.ru Git - kernel.git/commit
audit: refactor audit_receive_msg() to clarify AUDIT_*_RULE* cases
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 20 Nov 2013 19:01:53 +0000 (14:01 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jan 2014 03:31:22 +0000 (22:31 -0500)
commitb43c6661a37e0974b5916fd1cbc092f56bd21130
tree34cae2d8036f35933d49d3a02c49b37e0d95811b
parent97f4f16b1e8537358203d5abb352004827acfa83
audit: refactor audit_receive_msg() to clarify AUDIT_*_RULE* cases

audit_receive_msg() needlessly contained a fallthrough case that called
audit_receive_filter(), containing no common code between the cases.  Separate
them to make the logic clearer.  Refactor AUDIT_LIST_RULES, AUDIT_ADD_RULE,
AUDIT_DEL_RULE cases to create audit_rule_change(), audit_list_rules_send()
functions.  This should not functionally change the logic.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/audit.h
kernel/audit.c
kernel/auditfilter.c