All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <jbrindle@tresys.com>
To: vyekkirala@TrustedCS.com
Cc: Paul Moore <paul.moore@hp.com>, James Morris <jmorris@namei.org>,
	selinux@tycho.nsa.gov, Stephen Smalley <sds@tycho.nsa.gov>,
	gcwilson@us.ibm.com
Subject: Re: SELinux Networking Enhancements
Date: Fri, 03 Nov 2006 13:44:47 -0500	[thread overview]
Message-ID: <454B8E1F.5050304@tresys.com> (raw)
In-Reply-To: <001a01c6ff5a$7eb99970$cc0a010a@tcssec.com>

Venkat Yekkirala wrote:
>>>
>> So you just pass an additional parameter to the selinux
>> module? I assume
>> you aren't going to try to use TE policy to choose.
> 
> Can you reframe your original question? I am afraid I misunderstood
> it when I answered.
> 

How do you tell it to drop on one peer label but reject another?

>> <snip>
>>>> With these
>>>> filter rules if
>>>> they aren't in place the policy becomes less restrictive
>> (right?)..
>>> We could also be restrictive or leave it up to the policy entirely.
>>>
>> So if there is no rule present it would always check against unlabeled
>> (or some initial SID)?
> 
> Yes. I think this would be the simpler approach for now.
> 
>> Can you force the selinux module to be called
>> under all circumstances?
> 
> Yes, in the proposal we are looking at here, the module will be called
> from within netfilter when there are explicit secfilter rules as well as
> when none have been found in which case there would be a check against
> unlabeled. Is this what you meant to ask?
> 

Right, would the module always be 'on', even if iptables has an accept 
policy.

>> This is starting to sound pretty reasonable. The filter rules
>> really are
>> policy
> 
> They are a really a labeling policy just like in the secmark case.
> Here we would label the filter points as opposed to packets.
> 

Maybe, if the unlabeled check is really there then it is labeling, if it 
  isn't then you are using filter rules to set up an external policy.

>> they just aren't TE policy, and they are also tightly
>> bound to a
>> particular TE policy.
> 
> If you meant the "particular" portion of the policy that would
> have the allow rules, etc., to enforce secfilter, yes.
> 

mostly types..

>> This is different from other object managers because their "policy" is
>> static, they always ask the question at some point in the codepath
>> wheras you want to implement a dynamic policy to query the security
>> server.
> 
> I am not sure I understand. This is completely analogous to how the
> filesystem
> checks work. Just like how file contexts live on the File System, secfilter
> contexts live (just like secmark labels) in the netfilter subsystem
> efficiently
> looked up by the iptables framework. Just like how the various portions of
> the
> FS code call into LSM, so would netfilter/secfilter.
> 

Same as above.. if the unlabeled check is done then fine, otherwise you 
are using iptables as an enforcer with a dynamic policy (eg., its only 
checked if there is an iptables rule present instead of every single 
time in a static code path like the filesystem).

>> I don't think there is anything wrong with it but the
>> ramifications need to be examined, synchronicity is probably
>> going to be
>> the hardest thing to solve.
> 
> Could you please eleborate on the synchronicity issues and how these are
> absent/resolved for the FS case?
> 

Mainly applying the rules at the same time as a policy update and 
keeping them synchronized. It is easier for files because you merely 
overwrite the label there, with iptables there are ordering issues so 
you have to apply them in the right order, including any rules that are 
already there. If any module has a rule that shadows another there are 
problems, you'll never know which gets put in the chain first, etc.


--
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:[~2006-11-03 18:44 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-20 15:10 SELinux Networking Enhancements Venkat Yekkirala
2006-10-20 23:24 ` James Morris
2006-10-23 16:32   ` Venkat Yekkirala
2006-10-23 21:17     ` James Morris
2006-10-24 14:33       ` Venkat Yekkirala
2006-10-30 18:27         ` James Morris
2006-10-30 18:34           ` Joshua Brindle
2006-10-30 18:40             ` James Morris
2006-10-30 18:43               ` Joshua Brindle
2006-10-30 18:49                 ` James Morris
2006-10-31 20:54           ` Venkat Yekkirala
2006-11-01  3:46             ` James Morris
2006-11-01 15:04               ` Paul Moore
2006-11-01 16:00                 ` James Morris
2006-11-01 16:09                   ` Paul Moore
2006-11-01 17:26                     ` James Morris
2006-11-01 17:39                       ` Paul Moore
2006-11-01 20:59                   ` Venkat Yekkirala
2006-11-01 21:29                     ` Paul Moore
2006-11-02 15:15                       ` Venkat Yekkirala
2006-11-02 15:26                         ` Paul Moore
2006-11-02 15:47                           ` Venkat Yekkirala
2006-11-02 16:43                         ` James Morris
2006-11-02 16:45                           ` James Morris
2006-11-02 17:10                             ` Venkat Yekkirala
2006-11-02 17:22                               ` James Morris
2006-11-02 17:31                                 ` Venkat Yekkirala
2006-11-02 16:49                         ` Joshua Brindle
2006-11-02 17:01                           ` Venkat Yekkirala
2006-11-02 17:19                             ` Joshua Brindle
2006-11-02 17:38                               ` Venkat Yekkirala
2006-11-02 17:51                                 ` Paul Moore
2006-11-02 17:53                                 ` Joshua Brindle
2006-11-03 15:12                                   ` Venkat Yekkirala
2006-11-03 18:44                                     ` Joshua Brindle [this message]
2006-11-01 14:02           ` Christopher J. PeBenito
2006-11-01 15:58             ` Venkat Yekkirala
2006-11-01 17:54               ` Joshua Brindle
2006-11-01 17:59                 ` Paul Moore
2006-11-01 19:25                   ` Venkat Yekkirala
2006-11-01 19:46                     ` Joshua Brindle
2006-11-01 17:55               ` Christopher J. PeBenito
2006-11-01 18:30                 ` Paul Moore
2006-11-01 19:57                 ` James Morris
2006-11-01 19:59                   ` Joshua Brindle
2006-11-02 16:20                 ` Venkat Yekkirala
2006-11-02 18:33                   ` Christopher J. PeBenito
2006-11-03 14:49                     ` Venkat Yekkirala
     [not found] <36282A1733C57546BE392885C06185920166D6EC@chaos.tcs.tcs-sec.com>
2006-11-02 16:22 ` Venkat Yekkirala
2006-11-02 16:31   ` Joshua Brindle
2006-11-02 16:54     ` Venkat Yekkirala
  -- strict thread matches above, loose matches on Subject: below --
2006-10-16 14:55 Venkat Yekkirala
2006-10-16  3:14 Venkat Yekkirala
2006-10-16 12:40 ` Joshua Brindle
2006-10-16 14:31   ` Venkat Yekkirala
2006-10-18 13:23     ` Joshua Brindle
2006-10-18 14:08       ` Joe Nall
2006-10-18 15:10       ` Venkat Yekkirala
2006-10-18 16:09         ` Joshua Brindle
2006-10-19 15:06           ` Venkat Yekkirala
2006-10-19 16:04             ` Joshua Brindle
2006-10-19 16:54               ` Venkat Yekkirala
2006-10-19 21:27             ` James Morris

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=454B8E1F.5050304@tresys.com \
    --to=jbrindle@tresys.com \
    --cc=gcwilson@us.ibm.com \
    --cc=jmorris@namei.org \
    --cc=paul.moore@hp.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=vyekkirala@TrustedCS.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.