From: sgrubb@redhat.com (Steve Grubb)
To: linux-security-module@vger.kernel.org
Subject: [PATCH] capabilities: do not audit log BPRM_FCAPS on set*id
Date: Thu, 09 Mar 2017 09:34:53 -0500 [thread overview]
Message-ID: <3292783.lRT1C7ihKT@x2> (raw)
In-Reply-To: <20170307211048.GE10258@madcap2.tricolour.ca>
On Tuesday, March 7, 2017 4:10:49 PM EST Richard Guy Briggs wrote:
> > > > > one possibly audit-worth case which (if I read correctly) this will
> > > > > skip is where a setuid-root binary has filecaps which *limit* its
> > > > > privs.
> > > > > Does that matter?
> > > >
> > > > I hadn't thought of that case, but I did consider in the setuid case
> > > > comparing before and after without setuid forcing the drop of all
> > > > capabilities via "ambient". Mind you, this bug has been around before
> > > > Luto's patch that adds the ambient capabilities set.
> > >
> > > Can you suggest a scenario where that might happen?
> >
> > Sorry, do you mean the case I brought up, or the one you mentioned? I
> > don't quite understnad the one you brought up. For mine it's pretty
> > simple to reproduce, just
>
> I was talking about the case you brought up, but they could be the same
> case.
>
> I was thinking of a case where the caps actually change, but are
> overridden by the blanket full permissions of setuid.
If there actually is a change in capability bits besides the implied change of
capabilities based on the change of the uid alone, then it should be logged.
-Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2017-03-09 14:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <515427654218b7ce22441f635115e93cf74d6302.1488491988.git.rgb@redhat.com>
[not found] ` <20170307181049.GA31834@mail.hallyn.com>
[not found] ` <20170307211048.GE10258@madcap2.tricolour.ca>
2017-03-09 14:34 ` Steve Grubb [this message]
2017-03-29 10:29 ` [PATCH] capabilities: do not audit log BPRM_FCAPS on set*id Richard Guy Briggs
2017-04-11 19:36 ` Paul Moore
2017-04-12 6:43 ` Richard Guy Briggs
2017-04-12 14:51 ` Serge E. Hallyn
2017-04-12 18:49 ` Steve Grubb
2017-04-13 8:50 ` Richard Guy Briggs
2017-04-13 19:36 ` Steve Grubb
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=3292783.lRT1C7ihKT@x2 \
--to=sgrubb@redhat.com \
--cc=linux-security-module@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).