From: Daniel J Walsh <dwalsh@redhat.com>
To: Ronald van den Blink <selinux@a61.nl>
Cc: "Christopher J. PeBenito" <cpebenito@tresys.com>, selinux@tycho.nsa.gov
Subject: Re: Unreserved portnumbers in corenetwork
Date: Wed, 05 Mar 2008 15:32:14 -0500 [thread overview]
Message-ID: <47CF034E.2010407@redhat.com> (raw)
In-Reply-To: <6507AB86-A6D5-4314-BC06-86458D15C786@a61.nl>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ronald van den Blink wrote:
>
> On Mar 5, 2008, at 5:43 PM, Christopher J. PeBenito wrote:
>
>> On Wed, 2008-03-05 at 17:16 +0100, Ronald van den Blink wrote:
>>> On Mar 5, 2008, at 5:05 PM, Christopher J. PeBenito wrote:
>>>
>>>> On Wed, 2008-03-05 at 16:47 +0100, selinux@a61.nl wrote:
>>>>>> Unfortunately there are 3 forces at work. The first is that for the
>>>>>> most part, ports should always be labeled, because, for example,
>>>>>> port 80
>>>>>> is always going to be regarded as the http port. The second is that
>>>>>> thats not always the case for non well-defined ports (your
>>>>>> situation).
>>>>>> The third is that portcons (the port labeling statements) only
>>>>>> work in
>>>>>> the base module. So, though we want to make a happy medium
>>>>>> between the
>>>>>> first two, we can't overcome the final one within the constraints
>>>>>> of the
>>>>>> current toolchain.
>>>>>>
>>>>>
>>>>> Agree with that. But wouldn't the situation be a little less
>>>>> complicated
>>>>> if you decide not to define any ports above 1024 in the reference
>>>>> policy?
>>>>
>>>> That breaks people that just want to use reference policy.
>>>>
>>> Does this mean that any module in the refpol that needs (for instance)
>>> port 8080 but isn't a http-cache-daemon uses corenetwork_httpd_cache
>>> and get's all the other ports defined there as well? Isn't that
>>> breaking the least priviliges idea? Because you're opening up more
>>> ports then needed?
>>
>> It depends on how far you want/need to take least privilege. By this
>> argument, having all of the shared libraries in /lib and /usr/lib being
>> the same label would be bad. You have to evaluate the impact on your
>> security goals.
>>
> Well, that's exactly the reason why we choose not to label the libraries
> in /opt/jboss/lib (or whatever the exact place is) lib_t but
> jboss_lib_t, we don't want those lib's to be shared. In our view it is a
> security risk to declare a range of (unprivileged) ports as (in our
> case) http_cache and use them for just one of the ports ;) But, that's
> just one of the reasons. We are still wondering if it is a good approach
> to stop declaring ports > 1024 in corenetwork and make a generic handler
> so modules can create ports > 1024 on the fly if needed.
>
>
>
>> --
>> 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.
>
>
> --
> 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.
I like Stephen suggestion of removing corenetwork ports altogether is
defining them via semanage. This would allow flexibility where a user
wants to allow apache to listen on a special port but not port 80.
Currently you can not remove a port that is defined in corenetwork.
The problem with removing corenetwork and adding all the ports via
semanage would take a very long time with the current tool chain.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkfPA00ACgkQrlYvE4MpobNZ/ACgp8rwt081wACa3rfCWmyU5JJe
mfMAoNI9D8LA8pNCXQdv0DVEbirdvy+D
=9z2s
-----END PGP SIGNATURE-----
--
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:[~2008-03-05 20:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 10:21 Unreserved portnumbers in corenetwork selinux
2008-03-05 15:24 ` Christopher J. PeBenito
2008-03-05 15:47 ` selinux
2008-03-05 16:05 ` Christopher J. PeBenito
2008-03-05 16:16 ` Ronald van den Blink
2008-03-05 16:43 ` Christopher J. PeBenito
2008-03-05 19:25 ` Ronald van den Blink
2008-03-05 20:32 ` Daniel J Walsh [this message]
2008-03-05 20:36 ` Stephen Smalley
2008-03-05 21:52 ` Daniel J Walsh
2008-03-06 3:41 ` Joe Nall
2008-03-06 14:18 ` Daniel J Walsh
2008-03-06 14:46 ` Joe Nall
2008-03-05 21:23 ` Ronald van den Blink
2008-03-05 21:29 ` Daniel J Walsh
2008-03-05 15:51 ` Stephen Smalley
2008-03-06 13:37 ` Christopher J. PeBenito
2008-03-07 13:13 ` Ronald van den Blink
2008-03-07 13:29 ` Daniel J Walsh
2008-03-07 16:15 ` 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=47CF034E.2010407@redhat.com \
--to=dwalsh@redhat.com \
--cc=cpebenito@tresys.com \
--cc=selinux@a61.nl \
--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.