lkml.org 
[lkml]   [2015]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [capabilities] Allow normal inheritance for a configurable set of capabilities
On Wed, 4 Feb 2015, Serge E. Hallyn wrote:

> Ok this is all sounding too magic for my tastes. My original suggestion
> was for an actual new capability set, pA, empty by default. You can
> add bits to it using prctl if ns_capable(CAP_SETPCAP) and all the new bits are
> in your pE. Once set, they stay until they are removed using prctl. At
> exec, pA' = pA, and fI |= pA (after reading fI from disk but before
> calculating pI').

Sounds good. I think we cannot avoid the additional capability set in the
cred structure since otherwise the regular ("crippled") inheritance bits
may be modified and then not passed on correctly.



\
 
 \ /
  Last update: 2015-02-04 19:21    [W:0.652 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site