aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2014-08-24 20:37:52 -0400
committerEric Paris <eparis@redhat.com>2014-09-23 16:37:55 -0400
commit9ef91514774a140e468f99d73d7593521e6d25dc (patch)
treeaea652b76becf1f3ff59324a8154a36707a14d46 /kernel/audit.c
parentaudit: set nlmsg_len for multicast messages. (diff)
downloadlinux-dev-9ef91514774a140e468f99d73d7593521e6d25dc.tar.xz
linux-dev-9ef91514774a140e468f99d73d7593521e6d25dc.zip
audit: correct AUDIT_GET_FEATURE return message type
When an AUDIT_GET_FEATURE message is sent from userspace to the kernel, it should reply with a message tagged as an AUDIT_GET_FEATURE type with a struct audit_feature. The current reply is a message tagged as an AUDIT_GET type with a struct audit_feature. This appears to have been a cut-and-paste-eo in commit b0fed40. Reported-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index d20f00ff7bb5..3a80abb6eaa1 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -724,7 +724,7 @@ static int audit_get_feature(struct sk_buff *skb)
seq = nlmsg_hdr(skb)->nlmsg_seq;
- audit_send_reply(skb, seq, AUDIT_GET, 0, 0, &af, sizeof(af));
+ audit_send_reply(skb, seq, AUDIT_GET_FEATURE, 0, 0, &af, sizeof(af));
return 0;
}