From: Paul Moore <paul.moore@hp.com>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Network flow controls and subj/obj ordering
Date: Wed, 12 Dec 2007 15:18:15 -0500 [thread overview]
Message-ID: <200712121518.15454.paul.moore@hp.com> (raw)
In-Reply-To: <1197404602.12626.185.camel@gorn>
On Tuesday 11 December 2007 3:23:22 pm Christopher J. PeBenito wrote:
> On Tue, 2007-12-11 at 12:02 -0500, Paul Moore wrote:
> > After a discussion with Venkat last week we decided that it was
> > probably best if I took responsibility for the flow control patches
> > and ported/cleaned them up for inclusion in the labeled networking
> > patches for 2.6.25. In the course of doing so I ran across the
> > problem of subject/object "ordering" (probably not the best term,
> > but it's all I can think of right now). In both the "flow in" and
> > "flow out" cases I'm tempted to use the packet's peer label as the
> > object just for the sake of consistency and the ability to use the
> > new "peer" object class for all network peer label access checks.
> > However, I wanted to make sure that is what everyone had in mind
> > from a conceptual point of view. See the two simple policy examples
> > below:
> >
> > * Packet "flows" into the system, peer label is the object
> >
> > allow netif_t peerlbl_t:peer flow_in;
> >
> > * Packet "flows" out of the system, peer label is the object
> >
> > allow netif_t peerlbl_t:peer flow_out;
>
> Can you give an example for the forwarding case? Also, how about in
> the non-labeled networking case?
Sorry, I wasn't trying to get into a detailed discussion about the
policy involved in all this, but I understand it's probably necessary
to get your head around it so I'll give it a shot. If you haven't yet,
go read my reply to Casey first as I'll build upon that here ...
First off, these access checks would only become active if labeled
networking was "enabled". This means that either labeled IPsec or
NetLabel has some configuration loaded. For labeled IPsec this means
an entry was created in the SPD or SAD with a SELinux context assigned
to it. For NetLabel this means a CIPSO DOI configuration was loaded
into the kernel. If labeled networking is not "enabled" then these
access checks will never happen; this was done to help reduce the
impact of the network access controls on the common case.
Assuming labeled networking is enabled, a forwarded packet would hit
four checks:
# inbound checks
allow netif_t peer_t:peer ingress;
allow netnode_t peer_t:peer ingress;
# outbound checks
allow netif_t peer_t:peer egress;
allow netnode_t peer_t:peer egress;
Does this help?
--
paul moore
linux security @ hp
--
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.
next prev parent reply other threads:[~2007-12-12 20:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 17:02 Network flow controls and subj/obj ordering Paul Moore
2007-12-11 17:51 ` Casey Schaufler
2007-12-12 20:08 ` Paul Moore
2007-12-11 20:23 ` Christopher J. PeBenito
2007-12-12 20:18 ` Paul Moore [this message]
2007-12-13 14:12 ` Christopher J. PeBenito
2007-12-13 15:45 ` Paul Moore
2007-12-14 19:25 ` Christopher J. PeBenito
2007-12-14 19:30 ` Stephen Smalley
2007-12-14 19:36 ` Christopher J. PeBenito
2007-12-14 19:43 ` Stephen Smalley
2007-12-14 19:36 ` Paul Moore
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=200712121518.15454.paul.moore@hp.com \
--to=paul.moore@hp.com \
--cc=cpebenito@tresys.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.