All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Fwd: Re: Removing DAC.]
       [not found] <19871.82.95.100.23.1206384558.squirrel@webmail.xs4all.nl>
@ 2008-03-24 20:55 ` Casey Schaufler
  0 siblings, 0 replies; only message in thread
From: Casey Schaufler @ 2008-03-24 20:55 UTC (permalink / raw)
  To: rmeijer, casey; +Cc: selinux, LSM List


--- Rob Meijer <capibara@xs4all.nl> wrote:

> ---------------------------- Original Message ----------------------------
> Subject: Re: Removing DAC.
> From:    "Rob Meijer" <capibara@xs4all.nl>
> Date:    Mon, March 24, 2008 19:48
> To:      casey@schaufler-ca.com
> --------------------------------------------------------------------------
> 
> On Sun, March 23, 2008 18:25, Casey Schaufler wrote:
> >
> > --- cinthya aranguren <cinthya.aranguren@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> Is there any way to avoid o remove DAC controls ? I'd like to have only
> >> one
> >> security scheme in my system. I mean a pure SElinux system. not DAC +
> >> MAC.
> >> only MAC.
> >
> > No.
> >
> > Well, not today.
> 
> If performance isn't a main issue, the loopback userspace filesystem
> approach may be appropriate. I use this approach to implement a crude
> object capability like DAC implementation replacing 'normal' DAC in my
> MinorFs project.
> 
> This same approach should work even simpler for MAC, just create a simple
> loopback filesystem that simply ignores all DAC.

Simple for you or me, but creating a new filesystem is a bit much
for the common programmer.

> > The LSM, which is the interface that SELinux uses to plug into
> > the rest of the kernel is explicity designed to allow additional
> > restrictions but not replacement or override of existing
> > restrictions. In the early days of LSM both restrictive models,
> > like what we have today, and authoritiative models, which would
> > allow replacement of traditional DAC where considered. The
> > authoritative model was rejected based on how easy it would be
> > for proprietary modules that had nothing to do with security to
> > exploit the interface.
> 
> If permissive (ocap) model would have been used, this would not need to be
> a valid assumption. It seems to me that layering traditional DAC or a
> restrictive model on top of an ocap model would be very much possible,
> while layering a permissive (either the normal DAC or ocap based DAC) on
> top of a restrictive model would not at all seem possible. IMHO a very bad
> choice has been made and it is apparently way to late now to ever dream of
> turning it back, so both people wanting to use MAC and people who rather
> use the ocap version of DAC are at best stuck with either using two
> partially conflicting models, or with using performance poor hacks like
> the loopback fs I described above.

Yes, I still cling to my convictions that an authoritative model
is better, but as I'm reminded on a regular basis, it's still got
to play in Peoria. I think that there is some improvement to be
had by separating the privilege and access control vectors, but
that's going to take a little time to get right, and may run up
against the same objections as an authoritative LSM did all those
years ago.


Casey Schaufler
casey@schaufler-ca.com

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-24 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <19871.82.95.100.23.1206384558.squirrel@webmail.xs4all.nl>
2008-03-24 20:55 ` [Fwd: Re: Removing DAC.] Casey Schaufler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.