All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <jbrindle@tresys.com>
To: gyurdiev@redhat.com
Cc: selinux@tycho.nsa.gov
Subject: Re: [ libsepol 6/6] Summary
Date: Thu, 21 Jul 2005 14:50:27 -0400	[thread overview]
Message-ID: <42DFEE73.5030402@tresys.com> (raw)
In-Reply-To: <1121971392.9844.79.camel@celtics.boston.redhat.com>

Ivan Gyurdiev wrote:

>>Depends on what you are doing. The scope checks to see if symbols being 
>>refered to are in scope. In the module language there is an optional 
>>command that has a scope different from the global (symbols required for 
>>the optional to be activated are added to the active scope).
>>
>>For purely monolithic policies it won't have an effect but with modules 
>>it must be done to ensure internal consistency in the policy.
>>    
>>
>
>I am checking if a context is valid. I don't have the slightest idea
>where the context came from - whether it's from a module language,
>or policy language, or any kind of language at all, as opposed
>to some database. 
>
>  
>
right, but the policydb format can include scoping information so 
therefore you should check it, but only if it's a non-expanded policy.

>>From what you're saying, it sounds like this scope stuff would only go
>into checkpolicy & co, not in any of the libsepol code.
>  
>
No, the scope is preserved in the module format so anything that works 
with modules will need to handle it. I'll have to think about the best 
place to add users into the policy, post-link or post-expand and that 
will really determine whether you need to worry about this.

--
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.

  reply	other threads:[~2005-07-21 18:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-21 17:55 [ libsepol 6/6] Summary Ivan Gyurdiev
2005-07-21 18:19 ` Joshua Brindle
2005-07-21 18:43   ` Ivan Gyurdiev
2005-07-21 18:50     ` Joshua Brindle [this message]
2005-07-21 20:28   ` John D. Ramsdell

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=42DFEE73.5030402@tresys.com \
    --to=jbrindle@tresys.com \
    --cc=gyurdiev@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /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.