From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: Wojtczak Arkadiusz <arkadiusz.wojtczak@pkobp.pl>
Subject: Re: audispd audit-remote plugin and uid, gid, euid, suid, fsuid, egid, sgid, fsgid
Date: Thu, 13 Nov 2014 10:01:15 -0500 [thread overview]
Message-ID: <1967507.tPLZkmirFL@x2> (raw)
In-Reply-To: <4E8FFAAD447BD2478D75C4FAC3BD2CBF53CC9927@M30SIEEXMX02.bank.ad.pkobp.pl>
On Thursday, November 13, 2014 02:51:28 PM Wojtczak Arkadiusz wrote:
> Hello,
> Lets assume that *id = uid or gid or euid or suid or fsuid or egid or sgid
> or fsgid. Audispd audit-remote (au-remote.conf) plugin sends native
> (numeric) uid, gid, euid, suid, fsuid, egid, sgid, fsgid. I want to
> correlate logs from many Linux boxes so I need to have *ids resolved to
> user/group names, similar to ausearch witch option "-interpret". Is there
> any way to enrich events with user/group names in au-remote or even earlier
> - in auditd or audit?
Not yet. I have been thinking about this and think I am settled on how to do
this. (You can look at the auformat utility for some hints.) Just haven't
tackled it yet due to other priorities. If you have a central uid database and
use sssd or nscd rather than /etc/passwd, then you can probably achieve this.
> I've considered forking audit-remote to use auparse
> (injecting additional code somewhere near line 412 of audisp-remote.c) or
> doing something like "tail ... --follow audit.log | ausearch ... -i". Am I
> correct that to be 100% sure that user or group corresponds to appropriate
> *id the mapping process has to be done in the kernel?
No, but rather on the local machine. User name mappings is a user space
phenomenon. The kernel only understands numbers. All interprettation is done
in user space with trusted databases.
> Otherwise there is low probability that during the time gap between actual
> event and "ausearch -i" someone could change *id or user/group name. Any
> help would be appreciated.
They could unless use of those utilities are restricted. You could also setup
a centralized user name management system to help things. But if you want to
tackle this yourself, I think the uids, gids, and hostnames are the main
things that need interpreting locally. Everything else can be done after the
fact.
-Steve
next prev parent reply other threads:[~2014-11-13 15:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 14:51 audispd audit-remote plugin and uid, gid, euid, suid, fsuid, egid, sgid, fsgid Wojtczak Arkadiusz
2014-11-13 15:01 ` Steve Grubb [this message]
2014-11-13 15:32 ` LC Bruzenak
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=1967507.tPLZkmirFL@x2 \
--to=sgrubb@redhat.com \
--cc=arkadiusz.wojtczak@pkobp.pl \
--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 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.