Re: Frustrated with capabilities..

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Markku Savela <msa@...>
Cc: Pavel Machek <pavel@...>, <linux-kernel@...>
Date: Thursday, August 28, 2008 - 1:48 pm

On Thu, Aug 28, 2008 at 05:45:34PM +0300, Markku Savela wrote:

Well, because that's not the what the POSIX draft specification (and
the rest of the Unix industry who were striving to meet the US
Department of Defense's "B2 by '92" initiative) ended up implementing.

The reason for that was to avoid bugs where a program that wasn't
expecting to be setuid (or just written by a stupid progammer) exec's
some program which wasn't expecting to have root privileges then bad
things happen.  The classic example of this was running the mail
program, which was setuid or setgid to the mail user/group, and then
typing "!/bin/sh" which would exec a shell running with those
privileges (because the mail program didn't know to drop its
privileges).

So in the capabilities model, the capabilities do *not* inherit unless
the a particular file explicitly states that it should inherit the
capabilities.  It's the principle of least privilege taken to its
logical conclusion.

						- Ted
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Frustrated with capabilities.., Markku Savela, (Wed Aug 27, 5:31 am)
Re: Frustrated with capabilities.., Pavel Machek, (Thu Aug 28, 10:18 am)
Re: Frustrated with capabilities.., Serge E. Hallyn, (Fri Aug 29, 12:58 pm)
Re: Frustrated with capabilities.., Markku Savela, (Thu Aug 28, 10:45 am)
Re: Frustrated with capabilities.., Theodore Tso, (Thu Aug 28, 1:48 pm)
Re: Frustrated with capabilities.., Markku Savela, (Fri Aug 29, 6:18 am)
Re: Frustrated with capabilities.., Serge E. Hallyn, (Fri Aug 29, 1:11 pm)
Re: Frustrated with capabilities.., Theodore Tso, (Fri Aug 29, 10:07 am)
Re: Frustrated with capabilities.., James Morris, (Fri Aug 29, 6:47 am)
Re: Frustrated with capabilities.., David P. Quigley, (Thu Aug 28, 5:03 pm)
Re: Frustrated with capabilities.., Casey Schaufler, (Fri Aug 29, 12:47 am)
Re: Frustrated with capabilities.., David P. Quigley, (Fri Aug 29, 10:20 am)