[redhat-lspp] [PATCH]: ipsecv6 needs a space when printing audit record.

Joy Latten latten at austin.ibm.com
Tue Mar 20 00:14:59 UTC 2007


This patch adds a space between printing of the src and dst ipv6 addresses.
Otherwise, audit or other test tools may fail to process the audit
record properly because they cannot find the dst address.

Please let me know if this patch is ok. It is minor fix, but I have
tested it and printing ipsecv6 audit record is much better.

Regards,
Joy

Signed-off-by: Joy Latten <latten at austin.ibm.com>

Patch is against linux-2.6.20-rc4.

diff -urpN linux-2.6.20.orig/net/xfrm/xfrm_policy.c linux-2.6.20.patch/net/xfrm/xfrm_policy.c
--- linux-2.6.20.orig/net/xfrm/xfrm_policy.c	2007-03-16 17:21:27.000000000 -0500
+++ linux-2.6.20.patch/net/xfrm/xfrm_policy.c	2007-03-19 18:39:09.000000000 -0500
@@ -2089,7 +2089,7 @@ void xfrm_audit_log(uid_t auid, u32 sid,
 					sizeof(struct in6_addr));
 			}
 			audit_log_format(audit_buf,
-					 " src=" NIP6_FMT "dst=" NIP6_FMT,
+					 " src=" NIP6_FMT " dst=" NIP6_FMT,
 					 NIP6(saddr6), NIP6(daddr6));
 		}
 		break;




More information about the redhat-lspp mailing list