From: Richard Guy Briggs Date: Mon, 25 Aug 2014 00:37:52 +0000 (-0400) Subject: audit: correct AUDIT_GET_FEATURE return message type X-Git-Tag: upstream/snapshot3+hdmi~17^2~99 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git;a=commitdiff_plain;h=374f060993fc6ca7336080abf46dc9b464280470 audit: correct AUDIT_GET_FEATURE return message type commit 9ef91514774a140e468f99d73d7593521e6d25dc upstream. 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 Signed-off-by: Richard Guy Briggs Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/audit.c b/kernel/audit.c index 2c0ecd1..b2f98a7 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -687,7 +687,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; }