[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2pr3dlk0c.fsf@ssh.synack.fr>
Date: Tue, 09 Mar 2010 14:09:07 +0100
From: Samir Bellabes <sam@...ack.fr>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Casey Schaufler <casey@...aufler-ca.com>,
Rik van Riel <riel@...hat.com>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Ingo Molnar <mingo@...e.hu>, James Morris <jmorris@...ei.org>,
linux-kernel@...r.kernel.org, Kyle McMartin <kyle@...artin.ca>,
Alexander Viro <viro@....linux.org.uk>
Subject: Re: Upstream first policy
Linus Torvalds <torvalds@...ux-foundation.org> writes:
> On Mon, 8 Mar 2010, Casey Schaufler wrote:
>>
>> Those of you who say we ought to come up with a single framework
>> that we can use to Do The Right Thing haven't been reading the code.
>> We have such a framework in the LSM.
>
> .. and people are also interested in using (and expanding) the 'notify'
> layer, probably because it is obviously designed for efficiently talking
> at a user-level program about the relevant accesses. Whether that is
> because they are just crazy ("malware detection") or whether it is an
> indication that the LSM layer and current security models are just not
> convenient enough, I dunno.
LSM layer gives enough to push the policy manager in userspace. Even
after that to a centralized server.
I worked on this, regarding networking. Next move should be to include
the LSM hooks regarding filesystem. [0]
I have concern about the way to do this, ie should we use the LSM layer
to do this, or should we put the features directly in the filesystem
stack or networking stack ?
At this point, it reminds me, ipchains (kernel 2.2) vs netfilter (kernel
2.4-2.6). At the beginning, with ipchains, filtering code was directly
in the network stack, and it wasn't the solution. So netfilter's hooks
was designed.
with LSM, we have a layer, and as sure as every one will come with his
own approach, I think we should keep code in stack (network, filesystem,
..) clean, and make the defering to userspace approach as a security
module. Then let the user/distro decided which features he want to use.
thanks,
sam
[0] http://lkml.org/lkml/2010/3/2/295
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists