mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Peter Dolding" <oiaohm@gmail.com>
To: linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org
Subject: Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)
Date: Mon, 29 Oct 2007 23:32:29 +1000	[thread overview]
Message-ID: <e7d8f83e0710290632u135b20det53a2c9b167630b7a@mail.gmail.com> (raw)
In-Reply-To: <4725B4EA.4060303@crispincowan.com>

On 10/29/07, Crispin Cowan <crispin@crispincowan.com> wrote:
> I *really* dislike this idea. It seems to set up the situation that the
> only acceptable modules are those that follow some "formal" model. Problems:
>
>     * What qualifies as a formal model? This becomes an arbitrary litmus
>       test, depending on whether the model was originally published in a
>       sufficiently snooty forum.

Agree slows development and experimentation with a idea BAD.  I would
more say function and reach of model and how its ment to operate
documented clearly.  So next coder along is not taken wild guess.  It
must be so clearly documented that almost any system admin could
understand how much or how little protection it is providing.

>     * What if someone invents a new model that has not been "formalized"
>       yet? Should Linux be forced to wait until the idea has been
>       through the academic mill before we allow someone to try
>       implementing a module for the idea?

Experimental until documented out of tree following mine.
.
>     * The proposal only allows a single implementation of each formal
>       model. In theory, theory is just like practice, but in practice it
>       is not. SMACK and SELinux follow substantially similar formal
>       models (not exactly the same) so should we exclude one and keep
>       the other? No, of course not, because in practice they are very
>       different.

Drop a stick on both of them.   Since they both operate substantially
similar they should be directly prepared to share code with each
other.   If one is not prepared to work with the other openly and
fairly out the tree it goes.

It could quite simple become the only thing different between Smack
and Selinux in they way they read configuration files.   Long term the
most user friendly and security solid modules win.  So long term one
wins short term any number of models.  We of course wait for that to
happen.  Note it could be agreement between coders.   Since they were
force to work as one if there is merit it will come out.  There is no
room for empire builders.   We need security builders.  Part of that
is getting your code examined by the most number of people able.

Same with apparmor vs selinux both can provide file access filtering.
So why two sets of code to do it.

LSM need a really strong maintainer prepared to beat a few ears in.
Or all we will endup with is usable modules.   Selinux pain in but to
configure no not really usable.   Maybe flaws in Smack so force to use
Selinux.  Apparmor too weak.

Basically a stack of trash is the current LSM model.  LSM's are fast
turning into x86 vs x86-64 bitrot all over again accept this time 100
times worse.  What is basically bitrot caused by not sharing.
Stackable modules maybe.  More important shared source code to do
stuff and common standards between LSM used where able.  This also
should make it simpler for new models to be added and experimented
with.  Since the new model may not need to redo all there hooking
system all over again.  Reduced security risk more tested code used in
new models.

Next more important extend security down into applications if
applications need it.   File access filtering would be a great feature
at the thread level.

We have enough LSM's to be hard. It a privilege to be in the main
kernel tree not a right.  Part of having a module in the Linux kernel
tree is a promise to do what is right for everyones security using the
kernel even if it means the end to your LSM's existence.  Part of
doing what is right is sharing of code.   All LSM developers should be
looking at there code and asking should this be like posix file caps
and for everyone.  Or should this be a LSM only feature because its
useless to everyone else.  From what I am seeing LSM maintainers don't
seam to think its part of the requirement to help other LSM's be
better even if theirs ends up losing.  Only if you are building a
Empire does it matter who wins or loses the long term of LSM's.   Only
thing that truly matter is that we get the best long term.


Peter Dolding

  reply	other threads:[~2007-10-29 13:32 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-29 10:01 Rob Meijer
2007-10-29 10:24 ` Crispin Cowan
2007-10-29 13:32   ` Peter Dolding [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-10-29 19:04 Rob Meijer
2007-10-29 19:41 ` Crispin Cowan
2007-10-30  5:13   ` Peter Dolding
2007-10-30 18:42     ` Jan Engelhardt
2007-10-30 19:14       ` Casey Schaufler
2007-10-30 19:50         ` Jan Engelhardt
2007-10-30 23:38       ` Peter Dolding
2007-10-31  0:16         ` david
2007-10-31  2:21           ` Peter Dolding
2007-10-31  3:43             ` Casey Schaufler
2007-10-31  5:08             ` david
2007-10-31  6:43             ` Crispin Cowan
2007-10-31  9:03               ` Peter Dolding
2007-10-31 10:10               ` Toshiharu Harada
2007-11-01  2:04                 ` Peter Dolding
2007-11-01  2:20                   ` Casey Schaufler
2007-11-01  2:51                     ` Peter Dolding
2007-11-01  7:17                       ` Jan Engelhardt
2007-11-01 11:49                         ` David Newall
2007-11-04  1:28                           ` Peter Dolding
2007-11-05  6:56                       ` Andrew Morgan
2007-11-05 13:29                         ` Serge E. Hallyn
2007-10-29 20:27 ` Casey Schaufler
2007-10-18  2:18 LSM conversion to static interface Linus Torvalds
2007-10-19 20:26 ` Andreas Gruenbacher
2007-10-19 20:40   ` Linus Torvalds
2007-10-20 11:05     ` Jan Engelhardt
2007-10-20 22:57       ` James Morris
2007-10-23  4:09         ` LSM conversion to static interface [revert patch] Arjan van de Ven
2007-10-23  5:16           ` Chris Wright
2007-10-24  0:31             ` Jeremy Fitzhardinge
2007-10-24  5:06               ` Arjan van de Ven
2007-10-24 11:50                 ` Linux Security *Module* Framework (Was: LSM conversion to static interface Simon Arlott
2007-10-24 12:55                   ` Adrian Bunk
2007-10-24 18:11                     ` Linux Security *Module* Framework (Was: LSM conversion to static interface) Simon Arlott
2007-10-24 18:51                       ` Jan Engelhardt
2007-10-24 18:59                         ` Simon Arlott
2007-10-24 19:04                           ` Jan Engelhardt
2007-10-24 21:02                             ` David P. Quigley
2007-10-24 21:37                               ` Serge E. Hallyn
2007-10-24 21:51                                 ` Jan Engelhardt
2007-10-24 22:02                                   ` David P. Quigley
2007-10-24 23:13                                     ` Jan Engelhardt
2007-10-25  1:50                                 ` david
2007-10-25  3:50                                 ` Kyle Moffett
2007-10-24 21:42                               ` Jan Engelhardt
2007-10-24 21:58                               ` Casey Schaufler
2007-10-24 22:04                                 ` David P. Quigley
2007-10-25 11:38                               ` Simon Arlott
2007-10-24 20:18                         ` Crispin Cowan
2007-10-24 20:46                           ` Jan Engelhardt
2007-10-24 21:29                             ` Casey Schaufler
2007-10-24 22:31                       ` Adrian Bunk
2007-10-24 22:58                         ` Casey Schaufler
2007-10-24 23:32                           ` Adrian Bunk
2007-10-24 23:42                             ` Linus Torvalds
2007-10-25  0:41                               ` Chris Wright
2007-10-25  2:19                                 ` Arjan van de Ven
2007-10-30  3:37                                 ` Toshiharu Harada
2007-10-25  1:03                               ` Casey Schaufler
2007-10-25  0:23                           ` Chris Wright
2007-10-25  0:35                             ` Ray Lee
2007-10-25  1:26                               ` Peter Dolding
2007-10-25  1:41                               ` Alan Cox
2007-10-25  2:11                                 ` david
2007-10-25 18:17                                 ` Ray Lee
2007-10-25 22:21                                   ` Alan Cox
2007-10-26  3:45                                     ` david
2007-10-26  5:44                                       ` Peter Dolding
2007-10-27 18:29                                   ` Pavel Machek
2007-10-28 18:48                                     ` Hua Zhong
2007-10-28 19:05                                     ` Hua Zhong
2007-10-28 22:08                                 ` Crispin Cowan
2007-10-28 22:50                                   ` Alan Cox
2007-11-26 20:42                                     ` serge
2007-10-28 23:55                                   ` Peter Dolding
2007-10-29  5:12                                   ` Arjan van de Ven
2007-10-25  9:19                               ` Bernd Petrovitsch
2007-10-25 16:04                                 ` Ray Lee
2007-10-25 17:10                                   ` Arjan van de Ven
2007-10-30  9:41                                   ` Bernd Petrovitsch
2007-10-25  1:42                             ` Casey Schaufler
2007-10-27 18:22                               ` Pavel Machek
2007-10-30  3:23                               ` Toshiharu Harada
2007-10-30  8:40                                 ` Jan Engelhardt
2007-10-30  8:50                                   ` Crispin Cowan
2007-10-30  9:27                                     ` Jan Engelhardt
2007-10-30  9:21                                   ` Toshiharu Harada
2007-10-25 11:44                         ` Simon Arlott
2007-10-25 23:09                         ` Tilman Schmidt
2007-10-26  2:56                           ` Greg KH
2007-10-26  7:09                             ` Jan Engelhardt
2007-10-26 15:54                               ` Greg KH
2007-10-26  9:46                             ` Tilman Schmidt
2007-10-26 15:58                               ` Greg KH
2007-10-26 16:32                                 ` Simon Arlott
2007-10-26 23:26                               ` Adrian Bunk

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=e7d8f83e0710290632u135b20det53a2c9b167630b7a@mail.gmail.com \
    --to=oiaohm@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®