Skip to content

Commit

Permalink
audit: correct AUDIT_GET_FEATURE return message type
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Richard Guy Briggs <[email protected]>
  • Loading branch information
rgbriggs authored and eparis committed Sep 23, 2014
1 parent 54e05ed commit 9ef9151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9ef9151

Please sign in to comment.