From: James Morris <jmorris@namei.org>
To: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>,
keescook@chromium.org, linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org,
kernel-hardening@lists.openwall.com, casey@schaufler-ca.com,
hch@infradead.org, igor.stoppa@huawei.com,
james.l.morris@oracle.com, paul@paul-moore.com,
sds@tycho.nsa.gov
Subject: Re: [PATCH] LSM: Convert security_hook_heads into explicit array of struct list_head
Date: Wed, 31 May 2017 09:06:04 +1000 (AEST) [thread overview]
Message-ID: <alpine.LRH.2.20.1705310858430.6920@namei.org> (raw)
In-Reply-To: <20170530162550.19ba1811@alans-desktop>
[-- Attachment #1: Type: text/plain, Size: 2030 bytes --]
On Tue, 30 May 2017, Alan Cox wrote:
> On Tue, 30 May 2017 23:29:10 +0900
> Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> wrote:
>
> > James Morris wrote:
> > > On Sun, 28 May 2017, Tetsuo Handa wrote:
> > >
> > > > can afford enabling". And we know that we cannot merge all security modules
> > > > into mainline. Thus, allowing LKM-based LSM modules is inevitable.
> > >
> > > Nope, it's not inevitable. The LSM API only caters to in-tree users.
> > >
> > > I'm not sure why you persist against this.
> >
> > Then, we are willing to accept LSM modules with users less than 10, aren't we?
>
> Why not if they are properly written and maintained. Historically we've
> supported an entire architecture that had one machine ever built. We
> supported a strange subclass of x86 machines for many years because James
> Bottomley cared enough to do the work. We still support M68K, PA-RISC and
> other stuff as well as plenty of hardware which probably has few users -
> providing it doesn't cause maintenance problems.
This is what we as a community came up with in 2008:
"Essentially, any new security project—not limited to LSMs—should be
accompanied by a clear and concise document outlining its requirements
and expected uses. This is to allow both security and regular folk to
perform review of the code in terms of how it meets the specified
requirements, and to avoid getting bogged down in unresolvable
discussions about the project’s security model."
>From https://blog.namei.org/2008/12/11/the-arjan-protocol/
(Not sure if the original document at Kernel Trap still exists, alas).
So what we need is clear design documentation that the code can be
reviewed against. There is nothing about the number of users. If the
code is simply using the existing API and meets its design goals, it's
pretty straightforward. If changes to the API or core kernel are also
required, then more discussion and review will be needed.
- James
--
James Morris
<jmorris@namei.org>
next prev parent reply other threads:[~2017-05-30 23:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-27 11:17 Tetsuo Handa
2017-05-27 22:30 ` Casey Schaufler
2017-05-28 0:38 ` Tetsuo Handa
2017-05-28 1:04 ` Kees Cook
2017-05-28 1:26 ` Tetsuo Handa
2017-05-28 17:57 ` Casey Schaufler
2017-05-30 10:22 ` James Morris
2017-05-30 14:29 ` Tetsuo Handa
2017-05-30 15:25 ` Alan Cox
2017-05-30 23:06 ` James Morris [this message]
2017-05-31 10:41 ` Tetsuo Handa
2017-05-31 11:04 ` James Morris
2017-05-31 11:31 ` Tetsuo Handa
2017-05-31 14:43 ` Alan Cox
2017-05-31 15:10 ` Tetsuo Handa
2017-05-31 15:14 ` Alan Cox
2017-05-31 9:44 ` José Bollo
2017-05-28 20:29 ` [PATCH v2] " Tetsuo Handa
2017-05-28 21:19 ` Kees Cook
2017-05-29 17:32 ` Casey Schaufler
2017-05-30 10:32 ` James Morris
2017-05-31 20:49 ` Igor Stoppa
2017-05-31 22:56 ` James Morris
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=alpine.LRH.2.20.1705310858430.6920@namei.org \
--to=jmorris@namei.org \
--cc=casey@schaufler-ca.com \
--cc=gnomes@lxorguk.ukuu.org.uk \
--cc=hch@infradead.org \
--cc=igor.stoppa@huawei.com \
--cc=james.l.morris@oracle.com \
--cc=keescook@chromium.org \
--cc=kernel-hardening@lists.openwall.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=sds@tycho.nsa.gov \
/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®