All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] audit: Make AUDIT_ANOM_ABEND event normalized
@ 2016-12-08 18:55 Steve Grubb
  2016-12-09  1:10 ` Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Grubb @ 2016-12-08 18:55 UTC (permalink / raw)
  To: linux-audit

The audit event specification asks for certain fields to exist in
all events. Running 'ausearch -m anom_abend -sv yes' returns no
events. This patch adds the result field so that the
AUDIT_ANOM_ABEND event conforms to the rules.

Signed-off-by: Steve Grubb <sgrubb@redhat.com>
---
 kernel/auditsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 5abf1dc..4317f5b 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -2403,7 +2403,7 @@ void audit_core_dumps(long signr)
 	if (unlikely(!ab))
 		return;
 	audit_log_task(ab);
-	audit_log_format(ab, " sig=%ld", signr);
+	audit_log_format(ab, " sig=%ld res=1", signr);
 	audit_log_end(ab);
 }
 
-- 
2.7.4

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

* Re: [PATCH 1/1] audit: Make AUDIT_ANOM_ABEND event normalized
  2016-12-08 18:55 [PATCH 1/1] audit: Make AUDIT_ANOM_ABEND event normalized Steve Grubb
@ 2016-12-09  1:10 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2016-12-09  1:10 UTC (permalink / raw)
  To: Steve Grubb; +Cc: linux-audit

On Thu, Dec 8, 2016 at 1:55 PM, Steve Grubb <sgrubb@redhat.com> wrote:
> The audit event specification asks for certain fields to exist in
> all events. Running 'ausearch -m anom_abend -sv yes' returns no
> events. This patch adds the result field so that the
> AUDIT_ANOM_ABEND event conforms to the rules.
>
> Signed-off-by: Steve Grubb <sgrubb@redhat.com>
> ---
>  kernel/auditsc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks good to me, added to the queue of patches to merge after the
upcoming merge window.

> diff --git a/kernel/auditsc.c b/kernel/auditsc.c
> index 5abf1dc..4317f5b 100644
> --- a/kernel/auditsc.c
> +++ b/kernel/auditsc.c
> @@ -2403,7 +2403,7 @@ void audit_core_dumps(long signr)
>         if (unlikely(!ab))
>                 return;
>         audit_log_task(ab);
> -       audit_log_format(ab, " sig=%ld", signr);
> +       audit_log_format(ab, " sig=%ld res=1", signr);
>         audit_log_end(ab);
>  }
>
> --
> 2.7.4
>
>
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

-- 
paul moore
www.paul-moore.com

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

end of thread, other threads:[~2016-12-09  1:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-08 18:55 [PATCH 1/1] audit: Make AUDIT_ANOM_ABEND event normalized Steve Grubb
2016-12-09  1:10 ` Paul Moore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.