From: Peng Haitao <penght@cn.fujitsu.com>
To: sgrubb@redhat.com
Cc: audit-list <linux-audit@redhat.com>
Subject: Re: [PATCH 1/2] fix a bug that use option '-r' cannot output all unformatted logs
Date: Tue, 29 Jul 2008 18:07:15 +0800 [thread overview]
Message-ID: <488EEBD3.1070504@cn.fujitsu.com> (raw)
In-Reply-To: <488EAD35.8000404@cn.fujitsu.com>
Hello Steve,
The log which message type is CONFIG_CHANGE does not contain "auid=" and exists
in /var/log/audit/audit.log, This will be OK or the log loses "auid="?
If you think this is OK, I will make a new patch.
Peng Haitao said the following on 2008-7-29 13:40:
> Hello Steve,
>
> Executing command "echo 'type=CONFIG_CHANGE msg=audit(1214114026.152:1641): op=updated rules specifying path="/home/pht/source/sys_temp" with dev=4294967295 ino=4294967295 list=-672208416 res=1' | ausearch -r", the output is NULL.
> The log is from /var/log/audit/audit.log and not modified.
>
> Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
> ---
> src/ausearch-parse.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/ausearch-parse.c b/src/ausearch-parse.c
> index 141fdee..0c38be1 100755
> --- a/src/ausearch-parse.c
> +++ b/src/ausearch-parse.c
> @@ -1403,7 +1403,7 @@ static int parse_simple_message(const lnode *n, search_items *s)
> // get loginuid
> str = strstr(n->message, "auid=");
> if (str == NULL)
> - return 1;
> + return 0;
> ptr = str + 5;
> term = strchr(ptr, ' ');
> if (term)
--
Regards
Peng Haitao
next prev parent reply other threads:[~2008-07-29 10:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-29 5:40 [PATCH 1/2] fix a bug that use option '-r' cannot output all unformatted logs Peng Haitao
2008-07-29 10:07 ` Peng Haitao [this message]
2008-07-29 12:38 ` Steve Grubb
2008-07-30 1:06 ` Peng Haitao
2008-08-15 18:04 ` Steve Grubb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=488EEBD3.1070504@cn.fujitsu.com \
--to=penght@cn.fujitsu.com \
--cc=linux-audit@redhat.com \
--cc=sgrubb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox