From: Dave Jones <davej@redhat.com>
To: Eric Paris <eparis@parisplace.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>,
eparis@redhat.com
Subject: Re: Check all returns from audit_log_start
Date: Thu, 6 Sep 2012 11:47:49 -0400 [thread overview]
Message-ID: <20120906154749.GA27399@redhat.com> (raw)
In-Reply-To: <CACLa4pteVcrk0ZuhUDQOf=WMx1Odob5F+B=Y=Y3DT-mj9ZbQ6A@mail.gmail.com>
On Thu, Sep 06, 2012 at 11:36:06AM -0400, Eric Paris wrote:
> On Thu, Sep 6, 2012 at 11:08 AM, Dave Jones <davej@redhat.com> wrote:
> > Following on from the previous patch that fixed an oops, these
> > are all the other similar code patterns in the tree with the same
> > checks added. I never saw these causing problems, but checking
> > this everywhere seems to make more sense than every subsequent
> > routine that gets passed 'ab' having to check it.
> >
> > Later we could remove all those same checks from audit_log_format
> > and friends. For now, this just prevents similar bugs being introduced
> > as the one in my previous patch.
> >
> > Signed-off-by: Dave Jones <davej@redhat.com>
>
> Not certain because I haven't looked at what happens with the error
> code, but I think this might not be right. auditd can be explictly
> told not to audit certain events, in which case it is normal and
> expected that ab would come back NULL....
Ugh, that's a lot messier to have to audit every function that gets
passed 'ab' to make sure it has a NULL check, but ok I'll go look at it.
hopefully audit_log_link_denied was a one off.
Dave
next prev parent reply other threads:[~2012-09-06 15:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-06 13:46 3.6-rc4 audit_log_d_path oops Dave Jones
2012-09-06 15:08 ` Check all returns from audit_log_start Dave Jones
2012-09-06 15:36 ` Eric Paris
2012-09-06 15:47 ` Dave Jones [this message]
2012-09-06 15:56 ` Dave Jones
2012-09-06 15:16 ` 3.6-rc4 audit_log_d_path oops Dave Jones
2012-09-06 15:34 ` Eric Paris
2012-09-06 16:32 ` Kees Cook
2012-09-06 16:45 ` Dave Jones
2012-09-06 17:50 ` Kees Cook
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=20120906154749.GA27399@redhat.com \
--to=davej@redhat.com \
--cc=eparis@parisplace.org \
--cc=eparis@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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