All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Paul Moore <paul.moore@hp.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Network flow controls and subj/obj ordering
Date: Fri, 14 Dec 2007 14:25:12 -0500	[thread overview]
Message-ID: <1197660312.12626.227.camel@gorn> (raw)
In-Reply-To: <200712131045.57681.paul.moore@hp.com>

On Thu, 2007-12-13 at 10:45 -0500, Paul Moore wrote:
> On Thursday 13 December 2007 9:12:08 am Christopher J. PeBenito wrote:
> > On Wed, 2007-12-12 at 15:18 -0500, Paul Moore wrote:
> > > 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;
> >
> > This helps.  But this seems to be for the old networking, how does it
> > work with the secmark stuff?
> 
> It doesn't work with the SECMARK stuff, or rather it works in parallel 
> with the SECMARK stuff.  We've debated integrating the peer labeling 
> protocols (labeled IPsec, NetLabel) with the SECMARK mechanism many 
> times but in the end we always end up deciding it doesn't make sense.

So, with compat_net off, you'd still need the above policy, not the
packet type against the peer type?, e.g., not this:

allow ssh_client_packet_t peer_t:peer egress;

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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:[~2007-12-14 19:25 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
2007-12-13 14:12     ` Christopher J. PeBenito
2007-12-13 15:45       ` Paul Moore
2007-12-14 19:25         ` Christopher J. PeBenito [this message]
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=1197660312.12626.227.camel@gorn \
    --to=cpebenito@tresys.com \
    --cc=paul.moore@hp.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.