* Significance of the level on a port configuration
@ 2009-03-11 17:44 Andy Warner
2009-03-11 17:47 ` Stephen Smalley
0 siblings, 1 reply; 5+ messages in thread
From: Andy Warner @ 2009-03-11 17:44 UTC (permalink / raw)
To: SELinux List
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
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.
Thanks,
Andy
[-- Attachment #2: Type: text/html, Size: 741 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Significance of the level on a port configuration
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
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Smalley @ 2009-03-11 17:47 UTC (permalink / raw)
To: Andy Warner; +Cc: SELinux List
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?
>
--
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Significance of the level on a port configuration
2009-03-11 17:47 ` Stephen Smalley
@ 2009-03-12 15:07 ` Paul Moore
2009-03-12 15:09 ` Stephen Smalley
0 siblings, 1 reply; 5+ messages in thread
From: Paul Moore @ 2009-03-12 15:07 UTC (permalink / raw)
To: Andy Warner; +Cc: Stephen Smalley, SELinux List
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).
--
paul moore
linux @ 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Significance of the level on a port configuration
2009-03-12 15:07 ` Paul Moore
@ 2009-03-12 15:09 ` Stephen Smalley
2009-03-12 15:24 ` Paul Moore
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Smalley @ 2009-03-12 15:09 UTC (permalink / raw)
To: Paul Moore; +Cc: Andy Warner, SELinux List
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Significance of the level on a port configuration
2009-03-12 15:09 ` Stephen Smalley
@ 2009-03-12 15:24 ` Paul Moore
0 siblings, 0 replies; 5+ messages in thread
From: Paul Moore @ 2009-03-12 15:24 UTC (permalink / raw)
To: Stephen Smalley; +Cc: Andy Warner, SELinux List
On Thursday 12 March 2009 11:09:26 am Stephen Smalley wrote:
> 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.
I got the impression that Andy was interested in port based MLS constraints in
the context of per-packet access control.
> 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.
I don't know of the reasoning behind that decision either, but this will be
less of an issue in the future as the compat_net code will be going away soon.
--
paul moore
linux @ 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-03-12 15:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-03-12 15:24 ` Paul Moore
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.