From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com, Lev Stipakov <lstipakov@gmail.com>
Subject: Re: syscall - "comm" field truncated
Date: Wed, 06 Apr 2016 10:37:45 -0400 [thread overview]
Message-ID: <1759553.WVXIQML8D2@x2> (raw)
In-Reply-To: <CAHC9VhQ_W9ke8Vej1CZWNTnkK2VXY2-CjjvAaE5YEb364MkbaA@mail.gmail.com>
On Wednesday, April 06, 2016 10:05:35 AM Paul Moore wrote:
> On Wed, Apr 6, 2016 at 9:53 AM, Lev Stipakov <lstipakov@gmail.com> wrote:
> > Hello,
> >
> > Sometimes audit of "execve" syscall generates events with truncated "comm"
> > values, for example:
> >
> > type=SYSCALL msg=audit(1459950426.152:1097081): arch=c000003e syscall=59
> > success=yes exit=0 a0=35bae3e a1=1bc0cf0 a2=2b09280 a3=58c items=2
> > ppid=2183 pid=26566 auid=4294967295 uid=1001 gid=1001 euid=1001
> > suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 tty=(none)
> > ses=4294967295 comm="gnome-calculato" exe="/usr/bin/gnome-calculator"
> >
> > Why "comm" is "gnome-calculato" and not "/usr/bin/gnome-calculator" ?
>
> This is due to a limitation in how the kernel records the comm field
> and isn't likely to change.
And just to add some history to this, there was a big discussion about this
back when the AUDIT_PROCTITLE record was added to syscall events. (Jan 2014)
Mainline kernel wouldn't allow it to be increased. So, we wound up with the
PROCTITLE record which supplies the missing information and more.
-Steve
next prev parent reply other threads:[~2016-04-06 14:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 13:53 syscall - "comm" field truncated Lev Stipakov
2016-04-06 14:05 ` Paul Moore
2016-04-06 14:37 ` Steve Grubb [this message]
2016-04-06 15:21 ` Richard Guy Briggs
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=1759553.WVXIQML8D2@x2 \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=lstipakov@gmail.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 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.