All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Moore <paul.moore@hp.com>
To: Klaus Weidner <klaus@atsec.com>
Cc: selinux@tycho.nsa.gov, "Christopher J. PeBenito" <cpebenito@tresys.com>
Subject: Re: [PATCH RFC 0/2] stricter MLS policy constraints
Date: Wed, 13 Dec 2006 16:50:50 -0500	[thread overview]
Message-ID: <458075BA.5030007@hp.com> (raw)
In-Reply-To: <20061213214047.GC3362@w-m-p.com>

Klaus Weidner wrote:
> On Wed, Dec 13, 2006 at 03:50:59PM -0500, Paul Moore wrote:
> 
>>The bad news is that I realized we never added NetLabel receive permissions to
>>any of the application domains (try to telnet into a machine with NetLabel);
>>only the user domains have the NetLabel receive permissions.  As a result I
>>wasn't able to try any more elaborate tests without fixing the policy.  It will
>>probably take a little while to get a patch out to address this as there are a
>>lot of domains which need to be changed; that said I'm probably about a third of
>>the way through at this point.
>>
>>In case anyone is interested, the policy changes boil down to the following:
>>
>> ifdef(`enable_mls',`
>>        corenet_tcp_recv_netlabel(app_domain_t)
>>        corenet_udp_recv_netlabel(app_domain_t)
>> ')
> 
> 
> Have you considered adding those lines to the existing interfaces in
> policy/modules/kernel/corenetwork.if.in instead? For example, telnetd
> currently uses corenet_tcp_sendrecv_all_if(telnetd_t), and you could make
> that interface provide the needed netlabel rights also.

I did consider doing something similar but I figured sticking with the existing
refpolicy convention was the going to be the path of least resistance and in the
"userdom_basic_networking_template" code the corenet_* NetLabel permissions are
kept separate from the rest of the corenet_* permissions.  It makes more sense
conceptually too I think.

I added Chris to the CC line as he might be able to provide some thoughts on
what he would like to see.

> Do we need something equivalent for labeled IPSEC?

I would think so, but I believe Joy said she is working on that; however, the
policy for NetLabel and labeled IPsec is radically different so labeled IPsec
may have a different approach.

With NetLabel you only need a single allow rule for each domain wishing to
receive labeled network traffic:

 allow my_domain_t unlabeled_t:{ tcp_socket udp_socket } recvfrom;

With labeled IPsec it's a bit more involved.

-- 
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.

  reply	other threads:[~2006-12-13 21:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-12  7:28 [PATCH RFC 0/2] stricter MLS policy constraints Klaus Weidner
2006-12-12  7:34 ` [PATCH RFC 1/2] " Klaus Weidner
2007-01-08 15:47   ` Christopher J. PeBenito
2007-01-09  4:43     ` Klaus Weidner
2006-12-12  7:38 ` [PATCH RFC 0/2] " Klaus Weidner
2006-12-12  7:40 ` [PATCH RFC 2/2] " Klaus Weidner
2006-12-12 15:26 ` [PATCH RFC 3/2] " Klaus Weidner
2006-12-13 20:50 ` [PATCH RFC 0/2] " Paul Moore
2006-12-13 21:40   ` Klaus Weidner
2006-12-13 21:50     ` Paul Moore [this message]
2006-12-14 15:48       ` Joy Latten
2007-01-08 16:02       ` Christopher J. PeBenito

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=458075BA.5030007@hp.com \
    --to=paul.moore@hp.com \
    --cc=cpebenito@tresys.com \
    --cc=klaus@atsec.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.