From: "Andrew G. Morgan" <morgan@kernel.org>
To: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: Eric Paris <eparis@redhat.com>, James Morris <jmorris@namei.org>,
linux-kernel@vger.kernel.org, sds@tycho.nsa.gov,
selinux@tycho.nsa.gov
Subject: Re: [PATCH] capability: WARN when invalid capability is requested rather than BUG/panic
Date: Sat, 04 Oct 2008 18:30:40 -0700 [thread overview]
Message-ID: <48E818C0.3080109@kernel.org> (raw)
In-Reply-To: <20080930162830.GB31779@us.ibm.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Serge E. Hallyn wrote:
> Andrew Morgan, any opinions?
[Sorry to get to this late.]
I'd prefer:
3) BUG_ON(!cap_valid(flag)) (garbage in BUG out, no panic)
It seems absurd to be guessing what a buggy driver might be wanting -
open source or not.
>> idea of mutating the inputs and then making the security decision based
>> on that mutation rather than on the original inputs (and yes, I realize
>> that exactly what 2.6.24 was doing)
and let's call it another bug fixed.
>>> Though I still think it's not unreasonable to simply ask for the driver
>>> to be fixed.
>> I'm not going to argue that the driver needs fixed and that is the real
>> problem. I know its been filed with them and the response was that
>> there is no support for linux. I have today tried to poke the path I
>> know of between Red Hat and them to ask them to take a look.
if distributions want to silently work around it (with some sort of
variant of 4 or perhaps 2) until the vendor of this driver has time to
fix it, then that doesn't seem unreasonable. But it seems to me that the
upstream kernel shouldn't institutionalize this sort of nonsense.
Cheers
Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI6Bi9+bHCR3gb8jsRArIBAKCuODkju29dCosHWPiXZVKoNP0FSwCaAzPx
EWihO1+F0qd0BFZarm/CFKM=
=HJik
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2008-10-05 1:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-30 13:55 [PATCH] capability: WARN when invalid capability is requested rather than BUG/panic Eric Paris
2008-09-30 14:23 ` James Morris
2008-09-30 14:36 ` Eric Paris
2008-09-30 15:38 ` Serge E. Hallyn
2008-09-30 16:07 ` Eric Paris
2008-09-30 16:28 ` Serge E. Hallyn
2008-09-30 17:22 ` Eric Paris
2008-09-30 17:28 ` Arjan van de Ven
2008-10-01 15:32 ` Eric Paris
2008-10-01 15:39 ` Arjan van de Ven
2008-10-01 15:44 ` Serge E. Hallyn
2008-10-05 1:30 ` Andrew G. Morgan [this message]
[not found] <bhO5y-S0-29@gated-at.bofh.it>
[not found] ` <bhOyr-1kZ-5@gated-at.bofh.it>
[not found] ` <bhOyr-1kZ-3@gated-at.bofh.it>
[not found] ` <bhPuC-2yN-5@gated-at.bofh.it>
[not found] ` <bhPXy-3jl-13@gated-at.bofh.it>
[not found] ` <bhQh0-3CK-9@gated-at.bofh.it>
[not found] ` <bhRd4-4RS-9@gated-at.bofh.it>
[not found] ` <bhRd8-4RS-27@gated-at.bofh.it>
[not found] ` <bibY4-6WP-13@gated-at.bofh.it>
2008-10-01 19:36 ` Bodo Eggert
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=48E818C0.3080109@kernel.org \
--to=morgan@kernel.org \
--cc=eparis@redhat.com \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=serue@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox