All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <method@manicmethod.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: tmiller@tresys.com, selinux@tycho.nsa.gov,
	Paul Moore <paul.moore@hp.com>
Subject: Re: PATCH: peersid capability support
Date: Fri, 30 Nov 2007 10:31:57 -0500	[thread overview]
Message-ID: <47502CED.2030607@manicmethod.com> (raw)
In-Reply-To: <1196434083.10720.10.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Fri, 2007-11-30 at 09:38 -0500, Joshua Brindle wrote:
>   
>> Stephen Smalley wrote:
>>     
>>> On Thu, 2007-11-29 at 18:24 -0500, Joshua Brindle wrote:
>>>   
>>>       
>>>> Stephen Smalley wrote:
>>>>     
>>>>         
>>>>> On Thu, 2007-11-29 at 14:27 -0500, tmiller@tresys.com wrote:
>>>>>   
>>>>>       
>>>>>           
>>>>>> This is a reworking of the peersid capability patch Joshua sent out
>>>>>> a few weeks ago.  This version requires added explicit declaration of
>>>>>> capabilities in the policy.
>>>>>>
>>>>>> I've used the same strings that Paul's kernel diff used (there is
>>>>>> currently just a single capability).
>>>>>>
>>>>>> Note that capability declarations are not limited to base.conf /
>>>>>> policy.conf as we would like to eventually get rid of the base vs. module
>>>>>> distinction.
>>>>>>     
>>>>>>         
>>>>>>             
>>>>> Taking the union of the capabilities at link time seems worrisome to me.
>>>>> I'd be more inclined to require equivalence or take the intersection.
>>>>>
>>>>>   
>>>>>       
>>>>>           
>>>> I strongly disagree. My vision was to be able to add a capability to the 
>>>> policy by inserting a policy module that enables the capability (and has 
>>>> associated policy). Making them an intersection or equivalence would 
>>>> require one to update every single module just to add a capability (or 
>>>> at least update the base if it is considered authoritative, which I was 
>>>> also trying to avoid).
>>>>     
>>>>         
>>> Joshua - think about it.  Let's say I write a policy module based on the
>>> new peer checks, and my base module was written in terms of the old
>>> network checks.  Now I link them together and get a policy that tells
>>> the kernel to use the new peer checks.  Voila!  My base policy breaks
>>> horrendously.
>>>   
>>>       
>> That is why I said the module being inserted would have the associated 
>> policy.
>>     
>
> That seems to violate modularity/encapsulation.
>
>   
>>  I don't believe policyrep is going to have a concept of base so 
>> we'd just be delaying the inevitable by restricting it to base now.
>>     
>
> It isn't a base vs. non-base issue.  You can certainly have every module
> declare the capabilities it requires/expects.  But taking the union is
> unsafe.  Module foo doesn't know what the rest of the modules on the
> system expect or what rules they contain.
>
> Requiring equivalence is the safest approach.
>   

Equivalence between every module? I don't see how this would possibly 
work in practice, how would audit2allow know what caps to include when 
it creates a new module? How would support for new caps come from a 
policy upgrade when there are local modules present that don't have them?



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  parent reply	other threads:[~2007-11-30 15:31 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-29 19:27 PATCH: peersid capability support tmiller
2007-11-29 21:24 ` Stephen Smalley
2007-11-29 23:24   ` Joshua Brindle
2007-11-30 13:34     ` Stephen Smalley
2007-11-30 14:38       ` Joshua Brindle
2007-11-30 14:48         ` Stephen Smalley
2007-11-30 14:53           ` Stephen Smalley
2007-11-30 15:31           ` Joshua Brindle [this message]
2007-11-30 15:44             ` Paul Moore
2007-11-30 16:02               ` Joshua Brindle
2007-11-30 16:19                 ` Paul Moore
2007-11-30 16:12             ` Stephen Smalley
2007-11-30 16:41               ` Stephen Smalley
2007-11-30 14:29   ` Paul Moore
2007-11-30 14:43     ` Joshua Brindle
2007-11-30 14:47       ` Paul Moore
2007-11-30 16:30       ` Paul Moore
2007-11-30 16:59         ` Todd Miller
2007-11-30 17:08           ` Stephen Smalley
2007-11-30 18:19           ` Paul Moore
2007-12-03 15:53     ` Christopher J. PeBenito
2008-01-03 15:15 ` Václav Ovsík
2008-01-03 15:25   ` Todd Miller
  -- strict thread matches above, loose matches on Subject: below --
2007-11-30 17:34 Todd C. Miller
2007-11-30 19:06 ` Paul Moore
2007-11-30 22:48   ` Paul Moore
2007-12-01  0:19     ` Joshua Brindle
2007-12-03 17:32       ` Paul Moore
2007-12-03 18:21         ` Stephen Smalley
2007-12-03 19:41 Todd C. Miller
2007-12-04 19:26 ` Paul Moore
2007-12-04 20:18   ` Stephen Smalley
2007-12-05 18:58 ` Stephen Smalley
2007-12-05 19:00   ` Todd Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47502CED.2030607@manicmethod.com \
    --to=method@manicmethod.com \
    --cc=paul.moore@hp.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=tmiller@tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.