Re: Frustrated with capabilities..

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Markku Savela <msa@...>
Cc: Theodore Tso <tytso@...>, <pavel@...>, <linux-kernel@...>
Date: Friday, August 29, 2008 - 1:11 pm

Quoting Markku Savela (msa@moth.iki.fi):

You're misinterpreting the empirical evidence.

If the caller is root, then capabilities are not "inherited." Rather,
if you are running in !issecure(SECURE_NOROOT) (which everyone is right
now), then we fake an all-powerful root by filling the file capability
sets at exec. So it's not that the task's capabliities are inherited.
Rather, it's that as the capabilities are recalculated, we pretend that
the file had full capability sets.

That's very different, but leads to the same results in your example
above.

> - if the caller does first setuid to non-root, the capabilities are

Both capabilities and selinux will allow:

1. the same binaries to be executed with different
privileges/permissions depending on the context of
the caller.

2. different binaries to be executed by the same caller
resulting in different privileges/permissions.

(that answers your next question)

> [Any ideas how selinux would help to enforce a permission which is

-serge
--

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)