Re: Unreserved portnumbers in corenetwork

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-03-05 at 10:51 -0500, Stephen Smalley wrote:
> On Wed, 2008-03-05 at 10:24 -0500, Christopher J. PeBenito wrote:
> > On Wed, 2008-03-05 at 11:21 +0100, selinux@xxxxxx wrote:
> > > We're building a policy for JBoss. Jboss uses atleast port 8080 and 8083.
> > > Besides this, the application we use on JBoss also opens port 8443 (https)
> > > 
> > > While building the jboss-module we ofcourse want to claim these ports and
> > > patch corenetwork. However, this is where our problem arises; HTTP has
> > > claimed some of the ports we need and http-cache has claimed 8080
> > > allready.
> > > 
> > > But http and http-cache allow to open more ports (80, 443, 488, 8008,
> > > 8009) than we really need. We think this is against the SElinux policy of
> > > least privilege.
> > > 
> > > So how do we deal with these kinds of port conflicts? Maybe corenetwork
> > > isn't the best place to define unreserved (> 1024) ports?
> > 
> > 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.
> 
> Perhaps all port context definitions should be moved to being handled
> via semanage port?

I don't think we actually need to move anything, we just have to allow
semanage to delete port labelings, since it can already add and modify
them.

-- 
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@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux