From: YOSHIFUJI Hideaki Date: Sun, 27 Apr 2008 05:24:10 +0000 (-0700) Subject: [XFRM] AUDIT: Fix flowlabel text format ambibuity. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e2c433d9f84dd9b0e01ef8607380d53a7f64d69;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [XFRM] AUDIT: Fix flowlabel text format ambibuity. Flowlabel text format was not correct and thus ambiguous. For example, 0x00123 or 0x01203 are formatted as 0x123. This is not what audit tools want. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 5dcc10b93c86..fac27ce770d5 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -2112,7 +2112,7 @@ static void xfrm_audit_helper_pktinfo(struct sk_buff *skb, u16 family, iph6 = ipv6_hdr(skb); audit_log_format(audit_buf, " src=" NIP6_FMT " dst=" NIP6_FMT - " flowlbl=0x%x%x%x", + " flowlbl=0x%x%02x%02x", NIP6(iph6->saddr), NIP6(iph6->daddr), iph6->flow_lbl[0] & 0x0f,