Great Circle Associates Firewalls
(December 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: chroot/setuid vs type enforcement
From: Rick Smith <smith @ sctc . com>
Date: Wed, 6 Dec 1995 13:06:34 -0600 (CST)
To: peter @ nmti . com (Peter da Silva)
Cc: smith @ sctc . com, anton @ the-wire . com, firewalls @ GreatCircle . COM
In-reply-to: <9512060019 . AA21767 @ sonic . nmti . com . nmti . com> from "Peter da Silva" at Dec 5, 95 06:19:50 pm

I wrote:

> > To be honest, aren't we really discussing a security model for Unix
> > that's been extracted in retrospect?

Peter Da Silva replied:

> Nope. It was pretty obvious to me at UCB in 1980. I believe that CSRG
> understood it too... after all I was just a freshman, they were grad 
> students.

But *today* we're interpreting the model in terms of mandatory access
control. At least, that's the distinction between Type Enforcement and
chroot(). TE has always been an explicit mechanism to unconditionally
block accesses according to explicit permissions.

While they may have had some security goals in 1980, we can't possibly
claim they were trying to do *mandatory* access control. They may have
recognized some notion that access control in Unix should focus on the
directory structure, but this did not represent a *mandatory* access
control objective. The only truly mandatory access control appears in
the kernel mode/user mode distinction at the processor level -- not
even "root" can make arbitrary code transition into kernel mode during
normal system operation (well, not directly).

One reason chroot() is clearly *not* mandatory access control is
because the networking code isn't the only place that chroot() style
protection is broken. What about access to raw devices? A fellow here
who's been looking at chroot() likes to talk about how it only
protects access to the "cooked" file system while allowing backdoor
access via the "raw" devices, mknod() and such. At least, he's run
some experiments that access supposedly protected data that way.

Now, I know we can trot out another bandaid to fix mknod(), but don't
we have a pattern here? This is beginning to look like the problem of
keeping naughty users from achieving root -- there's always one more
hole hidden under some subdirectory or an unexpectedly transitive
trust relationship. This comes from not having a set of mandatory
protection objectives *up* *front* and designing to achieve them.

Rick.
smith @
 sctc .
 com          secure computing corporation


Follow-Ups:
References:
Indexed By Date Previous: Tacacs+ or Radius, that is the question.
From: Eric Caron <ecaron @ globale . net>
Next: Re: tis and udp
From: long-morrow @ CS . YALE . EDU
Indexed By Thread Previous: Re: chroot/setuid vs type enforcement
From: peter @ nmti . com (Peter da Silva)
Next: Re: chroot/setuid vs type enforcement
From: Darren Reed <avalon @ coombs . anu . edu . au>

Google
 
Search Internet Search www.greatcircle.com