All of lore.kernel.org
 help / color / mirror / Atom feed
From: Glenn Faden <Glenn.Faden@sun.com>
To: Paul Moore <paul.moore@hp.com>
Cc: chanson@TrustedCS.com, refpolicy@oss.tresys.com, selinux@tycho.nsa.gov
Subject: Re: [refpolicy] [PATCH] refpolicy: Add missing network related MLSconstraints
Date: Fri, 13 Feb 2009 13:38:03 -0800	[thread overview]
Message-ID: <4995E83B.1040003@sun.com> (raw)
In-Reply-To: <200902131544.42460.paul.moore@hp.com>

Paul Moore wrote:
> On Friday 13 February 2009 02:36:17 pm chanson@trustedcs.com wrote:
>   
>> Traditionally network objects in a MLS system are not usually subject to
>> the usual privilege overrides. I would propose something like the below:
>>
>> mlsconstrain { netif } { egress ingress }
>> 	((( l1 dom l2 ) and ( l1 domby h2 )) or
>> 	 ( t1 == mlsnetflow ));
>> mlsconstrain { node } { recvfrom sendto }
>> 	((( l1 dom l2 ) and ( l1 domby h2 )) or
>> 	 ( t1 == mlsnetflow ));
>> mlsconstrain { packet } { forward_in forward_out }
>> 	((( l1 dom l2 ) and ( l1 domby h2 )) or
>> 	 ( t1 == mlsnetflow ));
>>
>> "mlsnetflow" would be a new attribute useful for special cases like
>> unlabeled_t or kernel_t.
>>     
>
> Why were network objects not subject to privilege overrides in 
> legacy/traditional MLS systems?
>
> I ask because I think we are best off keeping the MLS constraints as 
> consistent as possible.  If there is a sound reason for avoiding policy 
> overrides for just the network controls than perhaps we should consider 
> "fixing" the rest of the constraints and not just the new ones.
>   
I can provide a bit of history about some legacy systems. In Trusted 
Solaris 8 there was a privilege, net_mac_read, that allowed a server to 
accept connections from clients with labels it didn't dominate. In order 
to reply, the server either needed to set the socket label to match the 
incoming client's label, or assert the privilege net_reply_equal. There 
was no corresponding net_mac_write privilege, because privilege programs 
were expected to use the network API to set their socket labels 
appropriately.

In Solaris Trusted Extensions, neither the net_mac_read, net_mac_write, 
nor net_repy_equal privileges are implemented. It was viewed as a 
weakness in Trusted Solaris that MAC could be overridden by privilege. 
Instead, the administrator (who configures the system network policy) 
can enumerate multilevel network ports, and appropriately privileged 
services can bind to them.

Since MLS constraints are relatively new to UNIX, there isn't a 
compatibility requirement that the superuser should be able to override 
it. So don't provide any more rope than you need to.

--Glenn

--
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:[~2009-02-13 21:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12 21:15 [PATCH] refpolicy: Add missing network related MLS constraints Paul Moore
2009-02-12 21:15 ` [refpolicy] " Paul Moore
2009-02-13 19:36 ` [refpolicy] [PATCH] refpolicy: Add missing network related MLSconstraints chanson
2009-02-13 19:36   ` chanson at TrustedCS.com
2009-02-13 20:44   ` Paul Moore
2009-02-13 20:44     ` Paul Moore
2009-02-13 21:38     ` Glenn Faden [this message]
2009-02-13 22:02       ` Paul Moore
2009-02-13 22:02         ` Paul Moore
2009-02-13 22:17         ` chanson
2009-02-13 22:17           ` chanson at TrustedCS.com
2009-02-13 23:17           ` Paul Moore
2009-02-13 23:17             ` Paul Moore
2009-02-13 23:54             ` chanson
2009-02-13 23:54               ` chanson at TrustedCS.com
2009-02-13 22:24         ` Glenn Faden
2009-02-13 23:10           ` Paul Moore
2009-02-14  2:41   ` Casey Schaufler
2009-02-16 15:18     ` chanson
2009-02-16 15:18       ` chanson at TrustedCS.com
2009-02-21  1:37 ` [refpolicy] [PATCH] refpolicy: Add missing network related MLS constraints Joe Nall
2009-02-21  1:37   ` Joe Nall
2009-02-23 17:37   ` Paul Moore
2009-02-23 17:37     ` 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=4995E83B.1040003@sun.com \
    --to=glenn.faden@sun.com \
    --cc=chanson@TrustedCS.com \
    --cc=paul.moore@hp.com \
    --cc=refpolicy@oss.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.