From: "Alexey Dobriyan" <adobriyan@gmail.com>
To: "David Chinner" <dgc@sgi.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch, rfc] mm.h, security.h, key.h and preventing namespace poisoning
Date: Wed, 19 Dec 2007 13:15:39 +0300 [thread overview]
Message-ID: <b6fcc0a0712190215g58de1ad9m53aee165fecaa278@mail.gmail.com> (raw)
In-Reply-To: <20071219093834.GW4396912@sgi.com>
On 12/19/07, David Chinner <dgc@sgi.com> wrote:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7cd94146cd504016315608e297219f9fb7b1413b
>
> included security.h in mm.h and that is how I'm seeing the namespace
> poisoning coming from key.h when !CONFIG_KEY.
>
> Including security.h in mm.h means much wider includes for pretty
> much the entire kernel, and it opens up namespace issues like this
> that never previously existed.
ACK, removing sched.h from mm.h was quite painful and security.h
added it back unconditionally. As result, standalone mm.h inclusion goes
from ~9K to ~16K of code after preprocessing which is quite unpleasant.
> --- a/include/linux/mm.h
> +++ b/include/linux/mm.h
> @@ -12,7 +12,6 @@
> #include <linux/prio_tree.h>
> #include <linux/debug_locks.h>
> #include <linux/mm_types.h>
> -#include <linux/security.h>
next prev parent reply other threads:[~2007-12-19 10:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 9:38 David Chinner
2007-12-19 10:15 ` Alexey Dobriyan [this message]
2007-12-20 0:07 ` James Morris
2007-12-20 1:44 ` David Chinner
2007-12-20 4:11 ` James Morris
2007-12-25 22:05 ` Andrew Morton
2007-12-26 4:15 ` James Morris
2008-01-02 15:41 ` David Howells
2007-12-20 18:08 ` Eric Paris
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=b6fcc0a0712190215g58de1ad9m53aee165fecaa278@mail.gmail.com \
--to=adobriyan@gmail.com \
--cc=dgc@sgi.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®