From: Richard Guy Briggs <rgb@redhat.com>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-audit@redhat.com
Subject: Re: [PATCH] TaskTracker : Simplified thread information tracker.
Date: Mon, 5 Jan 2015 13:07:43 -0500 [thread overview]
Message-ID: <20150105180743.GI29998@madcap2.tricolour.ca> (raw)
In-Reply-To: <201501042050.EEH30201.FJVtFHMQOLSFOO@I-love.SAKURA.ne.jp>
On 15/01/04, Tetsuo Handa wrote:
> Hello.
>
> Richard Guy Briggs wrote:
> > > Richard Guy Briggs wrote:
> > > > On 14/09/28, Tetsuo Handa wrote:
> > > > > (Q2) Does auxiliary record work with only type=SYSCALL case?
> > > >
> > > > Auxiliary records don't work with AUDIT_LOGIN because that record has a
> > > > NULL context. Similarly for core dumps (AUDIT_ANOM_ABEND), AUDIT_SECCOMP,
> > > > configuration changes (AUDIT_CONFIG_CHANGE, AUDIT_FEATURE_CHANGE), most
> > > > (all?) AUDIT_USER_* messages.
> > > >
> > > I see, thank you.
> > >
> > > Although I feel that, from the point of view of troubleshooting, emitting
> > > history of thread's comm name into NULL-context records would help sysadmin
> > > to map login session and operations a user did from that login session,
> > > I'm OK with starting history of thread's comm name as auxiliary records
> > > (i.e. not emitted into NULL-context records).
> > >
> > > Adding LKML for reviewers. What else can I do for merging this patch?
> >
> > I'm willing to take it with some reflection and no significant
> > objections, in particular from userspace audit. I'll have a closer look
> > at it.
>
> Any comments on this patch?
Steve already mentioned any user-influenced fields need to be escaped,
so I'd recommend audit_log_untrustedstring() as being much simpler from
your perspective and much better tested and understood from audit
maintainer's perspective. At least use the existing 'o' printf format
specifier instead of inventing your own. I do acknowledge that the
resulting output from your function is easier to read in its raw format
passed from the kernel, however, it makes your code harder to maintain.
As for the date-stamping bits, they seem to be the majority of the code
in audit_update_history(). I'd just emit a number and punt that to
userspace for decoding. Alternatively, I'd use an existing service in
the kernel to do that date formatting, or at least call a new function
to format that date string should a suitable one not already exist, so
you can remove that complexity from audit_update_history().
- RGB
--
Richard Guy Briggs <rbriggs@redhat.com>
Senior Software Engineer, Kernel Security, AMER ENG Base Operating Systems, Red Hat
Remote, Ottawa, Canada
Voice: +1.647.777.2635, Internal: (81) 32635, Alt: +1.613.693.0684x3545
next prev parent reply other threads:[~2015-01-05 18:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201406262040.BGC30243.FFMLHOVQOOFSJt@I-love.SAKURA.ne.jp>
[not found] ` <201409271002.JAH52667.FtSOOHOQLFFMJV@I-love.SAKURA.ne.jp>
[not found] ` <20140927091440.6fe54f43@ivy-bridge>
[not found] ` <201409280012.FGE05239.VtFOSMOJFOFQLH@I-love.SAKURA.ne.jp>
[not found] ` <20141007213054.GJ26201@madcap2.tricolour.ca>
2014-10-10 12:40 ` [PATCH] TaskTracker : Simplified thread information tracker Tetsuo Handa
2014-10-10 12:49 ` Richard Guy Briggs
2015-01-04 11:50 ` Tetsuo Handa
2015-01-05 18:07 ` Richard Guy Briggs [this message]
2015-01-12 6:13 ` Tetsuo Handa
2015-01-12 15:14 ` Steve Grubb
2015-01-12 20:51 ` Paul Moore
2015-01-20 13:20 ` Tetsuo Handa
2015-01-12 15:21 ` Richard Guy Briggs
2015-01-19 15:25 ` Richard Guy Briggs
2014-05-23 12:44 Tetsuo Handa
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=20150105180743.GI29998@madcap2.tricolour.ca \
--to=rgb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
/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