From: Steve Grubb <sgrubb@redhat.com>
To: LC Bruzenak <lenny@magitekltd.com>
Cc: linux-audit@redhat.com
Subject: Re: possible "comm"
Date: Mon, 4 Aug 2008 18:45:41 -0400 [thread overview]
Message-ID: <200808041845.42607.sgrubb@redhat.com> (raw)
In-Reply-To: <1217888297.30693.403.camel@homeserver>
On Monday 04 August 2008 18:18:17 LC Bruzenak wrote:
> Since the audit-viewer script has:
> exec /usr/bin/python -O /usr/share/audit-viewer/main.py "$@"
>
> I'd guess that you were pointing in the right direction.
> But I would prefer that the comm field be more trustworthy.
I don't know how to make it more trustworthy without making it bigger. That
item lives in the task struct and is copied at every fork and rewritten on
exec. using kmalloc would add some overhead and picking anything bigger might
not be acceptable upstream.
Al, do you have any suggestions here?
> In reality, the /usr/bin/audit-viewer executable script really called
> the python exec which then interpreted the main.py script...I think. I'm
> not getting that from this event, however.
Its almost there. :) You have to make some assumptions which may or may not
be palatable. For one, you have to assume that no one has written anything
you don't know about. And you have to asume that they have not added
directories that you don't know about. Given those boundaries, you can
sometimes guess what it is when full paths are used.
> I guess the real issue here (as you pointed out) is that we have
> different entities - interpreted script/interpreter executable as
> opposed to command/resulting executable, but the same structure is used
> for each.
Well, we have 2 models...interpreter + script and just executable. We fit both
into the same structuire as the interpreter is the executable while the
script is the command. When you have an elf binary, the command and the
executable are the same thing.
-Steve
prev parent reply other threads:[~2008-08-04 22:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 21:01 possible "comm" LC Bruzenak
2008-08-04 20:31 ` Steve Grubb
2008-08-04 22:18 ` LC Bruzenak
2008-08-04 22:45 ` Steve Grubb [this message]
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=200808041845.42607.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=lenny@magitekltd.com \
--cc=linux-audit@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