From: Stephen Smalley <sds@tycho.nsa.gov>
To: Paul Moore <paul.moore@hp.com>
Cc: Andy Warner <warner@rubix.com>, SELinux List <selinux@tycho.nsa.gov>
Subject: Re: Significance of the level on a port configuration
Date: Thu, 12 Mar 2009 11:09:26 -0400 [thread overview]
Message-ID: <1236870566.22058.117.camel@localhost.localdomain> (raw)
In-Reply-To: <200903121107.27468.paul.moore@hp.com>
On Thu, 2009-03-12 at 11:07 -0400, Paul Moore wrote:
> On Wednesday 11 March 2009 01:47:19 pm Stephen Smalley wrote:
> > On Wed, 2009-03-11 at 18:44 +0100, Andy Warner wrote:
> > > Can someone give me a quick overview of the significance (i.e., the
> > > MLS behavior) of the port level for SELinux.
> > >
> > > I am attempting to have two connection from untrusted hosts that are
> > > statically labeled (with netlabelctl) one at high (s0) and one at low
> > > (s1). Both connections will be made over the same port number. The
> > > service accepting the connections runs at SystemHigh on Fedora 9 with
> > > MLS policy. What difference does the level of the port make ? Assume
> > > all TE rules are satisfied for the context of my question.
> >
> > I don't think the port level should make any difference. Are there any
> > MLS constraints defined on any of the permission checks that are based
> > on port contexts?
>
> Using the new network access controls there is no specific check against the
> port label, only the network interface and node (both of which just recently
> had the MLS constraints added).
name_bind/name_connect are still port-based, but there are no MLS
constraints on them.
The older per-packet send_msg/recv_msg checks are only applied if
compat_net=1. send_msg has no MLS constraint. recv_msg is included in
the socket "read" ops MLS constraint for reasons unclear to me; that
seems like a mistake.
--
Stephen Smalley
National Security Agency
--
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:[~2009-03-12 15:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 17:44 Significance of the level on a port configuration Andy Warner
2009-03-11 17:47 ` Stephen Smalley
2009-03-12 15:07 ` Paul Moore
2009-03-12 15:09 ` Stephen Smalley [this message]
2009-03-12 15:24 ` 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=1236870566.22058.117.camel@localhost.localdomain \
--to=sds@tycho.nsa.gov \
--cc=paul.moore@hp.com \
--cc=selinux@tycho.nsa.gov \
--cc=warner@rubix.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.