From: Mr Dash Four <mr.dash.four@googlemail.com>
To: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: xt_AUDIT additions
Date: Thu, 30 Jun 2011 23:42:58 +0100 [thread overview]
Message-ID: <4E0CFBF2.9000500@googlemail.com> (raw)
I would like to add 3 more pieces of information to the audit target to
be included in the audit logs:
1. pid/uid -> auid + program path (auid and program path is retrievable
once the pid is known) - outgoing packets only, obviously;
2. tcpflags, where applicable; and
3. tos information, again, where applicable;
The last two are more-or-less directly retrievable as they are included
in the tcphdr and iphdr structs respectively, but I am struggling to
find a reliable source for the first one - uid/pid information.
I know this information *should* be available as outgoing packets are
bound to sockets and those are created by a process, but I am struggling
to find a reliable source which I could use. I looked at both ss and
netstat sources, but the approach there is very different as they both
use/scan "/proc" to retrieve this information and I am not sure this is
the best way to approach things for the kernel code of the audit target.
Is there any other quicker/reliable way?
Having pid/uid, the program path and auid in particular (i.e. the audit
id - the "master" session of the root process owning the process to
which the socket/outgoing packet is bound) included in the audit logs
would be invaluable piece of information as the source of the packets
could be easily traced to the process (or processes) which created it
and the user id used. It would also help with cross-referencing with
other uid/pid/auid information from the audit logs to discover patterns
of interest to the auditors/sys admins.
next reply other threads:[~2011-06-30 22:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-30 22:42 Mr Dash Four [this message]
2011-07-01 8:12 ` xt_AUDIT additions Jan Engelhardt
2011-07-01 11:31 ` Mr Dash Four
2011-07-02 2:25 ` Mr Dash Four
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=4E0CFBF2.9000500@googlemail.com \
--to=mr.dash.four@googlemail.com \
--cc=netfilter-devel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).