Re: [2.6 patch] remove securebits

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morgan <morgan@...>
Cc: Adrian Bunk <bunk@...>, <sds@...>, <chrisw@...>, <linux-kernel@...>, <linux-security-module@...>
Date: Tuesday, August 28, 2007 - 2:19 pm

Quoting Andrew Morgan (morgan@kernel.org):


what about a process tree wanting to maintain the current
behavior - that is !SECURE_NOROOT, but able to keep_caps
across setuid, then regain full privs on executing a setuid
binary?  That is no longer possible when file capabilities
are enabled.  I think it should be, given just how long that
was the expected way to use capabilities.

Of course that means keep_capabilities can't be multiplexed
like this.  But that really doesn't seem like a big loss.
Trying to be too clever probably means we'll get it wrong,
and heck, the name is completely wrong in this sense  :)

To summarize more clearly, I think that so long as we support
process trees with a sort of !SECURE_NOROOT support, that
support should include the ability to use prctl(KEEP_CAPS) the
way one uses it now.

When a process tree is in strict capability mode,
prctl(PR_{G,S}ET_KEEP_CAPS) should return -EINVAL.


This is being moved from bprm_apply to bprm_set, which moves it
earlier.  If exec fails later on, keep_capabilities might be set
to 0 even though exec failed.


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

Messages in current thread:
[2.6 patch] remove securebits, Adrian Bunk, (Fri Aug 24, 5:06 pm)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Fri Aug 24, 5:19 pm)
Re: [2.6 patch] remove securebits, Andrew Morgan, (Fri Aug 24, 11:50 pm)
Re: [2.6 patch] remove securebits, Adrian Bunk, (Sat Aug 25, 2:28 pm)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Mon Aug 27, 11:09 am)
Re: [2.6 patch] remove securebits, Adrian Bunk, (Mon Aug 27, 11:17 am)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Mon Aug 27, 11:28 am)
Re: [2.6 patch] remove securebits, Adrian Bunk, (Mon Aug 27, 11:58 am)
Re: [2.6 patch] remove securebits, Andrew Morgan, (Tue Aug 28, 3:20 am)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Tue Aug 28, 2:19 pm)
Re: [2.6 patch] remove securebits, Andrew Morgan, (Wed Aug 29, 8:51 pm)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Thu Aug 30, 9:26 am)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Tue Aug 28, 10:38 am)