public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH] audit: AUDIT_FEATURE_CHANGE message format missing delimiting space
@ 2014-10-30 15:22 Richard Guy Briggs
  2014-10-30 23:52 ` Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Guy Briggs @ 2014-10-30 15:22 UTC (permalink / raw)
  To: linux-audit; +Cc: Richard Guy Briggs

Add a space between subj= and feature= fields to make them parsable.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
---
 kernel/audit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/audit.c b/kernel/audit.c
index 53bb39b..8ee4508 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -739,7 +739,7 @@ static void audit_log_feature_change(int which, u32 old_feature, u32 new_feature
 
 	ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_FEATURE_CHANGE);
 	audit_log_task_info(ab, current);
-	audit_log_format(ab, "feature=%s old=%u new=%u old_lock=%u new_lock=%u res=%d",
+	audit_log_format(ab, " feature=%s old=%u new=%u old_lock=%u new_lock=%u res=%d",
 			 audit_feature_names[which], !!old_feature, !!new_feature,
 			 !!old_lock, !!new_lock, res);
 	audit_log_end(ab);
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] audit: AUDIT_FEATURE_CHANGE message format missing delimiting space
  2014-10-30 15:22 [PATCH] audit: AUDIT_FEATURE_CHANGE message format missing delimiting space Richard Guy Briggs
@ 2014-10-30 23:52 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2014-10-30 23:52 UTC (permalink / raw)
  To: Richard Guy Briggs; +Cc: linux-audit

On Thursday, October 30, 2014 11:22:53 AM Richard Guy Briggs wrote:
> Add a space between subj= and feature= fields to make them parsable.
> 
> Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
> ---
>  kernel/audit.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied to the audit stable-3.18 branch with a CC for the -stable folks.  I'll 
send a pull request to Linus next week, I want to wait a few days and see if 
we get any other fixes for v3.18.

 * git://git.infradead.org/users/pcmoore/audit stable-3.18

> diff --git a/kernel/audit.c b/kernel/audit.c
> index 53bb39b..8ee4508 100644
> --- a/kernel/audit.c
> +++ b/kernel/audit.c
> @@ -739,7 +739,7 @@ static void audit_log_feature_change(int which, u32
> old_feature, u32 new_feature
> 
>  	ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_FEATURE_CHANGE);
>  	audit_log_task_info(ab, current);
> -	audit_log_format(ab, "feature=%s old=%u new=%u old_lock=%u new_lock=%u
> res=%d", +	audit_log_format(ab, " feature=%s old=%u new=%u old_lock=%u
> new_lock=%u res=%d", audit_feature_names[which], !!old_feature,
> !!new_feature,
>  			 !!old_lock, !!new_lock, res);
>  	audit_log_end(ab);

-- 
paul moore
security and virtualization @ redhat

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-30 23:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-30 15:22 [PATCH] audit: AUDIT_FEATURE_CHANGE message format missing delimiting space Richard Guy Briggs
2014-10-30 23:52 ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox