All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Karl MacMillan <kmacmillan@mentalrootkit.com>
Cc: Daniel J Walsh <dwalsh@redhat.com>,
	Eric Paris <eparis@parisplace.org>,
	James Morris <jmorris@namei.org>,
	selinux@tycho.nsa.gov, Joshua Brindle <method@manicmethod.com>
Subject: Re: secmark integration
Date: Thu, 05 Apr 2007 13:06:39 -0400	[thread overview]
Message-ID: <1175792799.17676.10.camel@sgc> (raw)
In-Reply-To: <1175788131.3174.4.camel@localhost.localdomain>

On Thu, 2007-04-05 at 11:48 -0400, Karl MacMillan wrote:
> On Wed, 2007-04-04 at 16:51 -0400, Daniel J Walsh wrote:
> > Karl MacMillan wrote:
> > > On Wed, 2007-04-04 at 17:22 +0000, Christopher J. PeBenito wrote:
> > >> On Mon, 2007-04-02 at 13:15 -0400, Karl MacMillan wrote:
> > >>> I don't think that there are particularly good restrictions that we can
> > >>> do out of the box. I think that we should instead focus on making it
> > >>> fairly easy to do customization with some documentation / recipes that
> > >>> people can follow.
> > >>>       
> > >> I still think the set that refpolicy can generate is fine.  It provides
> > >> the default ports for services on all interfaces.  This is better than
> > >> almost unconfined as it is now.  The incoming connections rules mirror
> > >> the name_bind rules, and the outgoing connections mirrors the
> > >> name_connect rules.  Since UDP doesn't have a connect we can cover that
> > >> reasonably too.  Then we get the connection tracking on all these too.
> > >
> > > The problem is moving from this default to a customized version. How
> > > will a packet type be redefined? Additive rules are fine, but changing
> > > or removing rules is problematic.

These are two separate issues.  My argument was about the quality of the
default rules, not about how well they could be managed.

> > >>> To that end, Chris / Dan, can you comment on my policy example? What I
> > >>> posted doesn't exactly work now and I would like to know what the
> > >>> suggested method for allowing almost all network facing daemons to
> > >>> receive unlabeled_t packets is going to be.
> > >>>       
> > >> Actually, my current idea is to make a tunable for each domain that
> > >> networks.  If we were to go the negation route, it would be something
> > >> like this in corenetwork:
> > >>
> > >> corenet_sendrecv_unlabeled_packets({ networking_domain -confined_networking_domain })
> > >>
> > >> Then corenetwork would provide interfaces to gain these attributes.
> > >>     
> > >
> > > Is this actively being worked on?
> > >
> > > Karl
> > >
> > >   
> > 
> > The other problem here is that it is not so clear what it means to be a 
> > networking domain.
> > 
> 
> Yep.
> 
> > Any application that does dns is a networking domain?  Any app that 
> > resolves a uid?
> > 
> 
> I think it is going to have to be all of these - basically any app that,
> by default, can receive unlabeled packets. BTW, we are going to need the
> interface that grants access to unlabeled packets but has a boolean and
> an interface that unconditionally allows that access (for use during
> customizations).

No, two interfaces aren't going to be needed.  If you go the negation
route, then users will be putting the interface call that gets the
confined_networking_domain attribute in their local.te when they want to
confine it.  If you go with my original idea, then the tunable will be
in the module itself.  The closest thing I can think of to what you're
saying would be to make a template that declares a tunable and then
encases a call to corenet_sendrecv_unlabeled_packets() inside of it,
which would be useful for my idea.

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

  reply	other threads:[~2007-04-05 17:06 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-19 14:57 secmark integration James Morris
2007-03-30 19:47 ` Karl MacMillan
2007-03-30 20:25   ` Eric Paris
2007-03-30 20:36     ` Karl MacMillan
2007-03-30 21:47       ` Eric Paris
2007-04-02 17:23         ` Karl MacMillan
2007-04-02 19:44           ` James Morris
2007-03-31  2:09     ` James Morris
2007-04-02 14:45       ` Daniel J Walsh
2007-04-02 14:55         ` Eric Paris
2007-04-02 15:15           ` Christopher J. PeBenito
2007-04-02 17:15             ` Karl MacMillan
2007-04-04 17:22               ` Christopher J. PeBenito
2007-04-04 20:08                 ` Karl MacMillan
2007-04-04 20:51                   ` Daniel J Walsh
2007-04-05 15:48                     ` Karl MacMillan
2007-04-05 17:06                       ` Christopher J. PeBenito [this message]
2007-04-05 17:40                         ` Karl MacMillan
2007-04-05 17:47                           ` Stephen Smalley
2007-04-05 18:02                             ` Christopher J. PeBenito
2007-04-05 17:59                               ` Stephen Smalley
2007-04-05 18:46                                 ` Christopher J. PeBenito
2007-04-05 18:48                                   ` Joshua Brindle
2007-04-05 19:22                                   ` Stephen Smalley
2007-04-05 19:53                                     ` Eamon Walsh
2007-04-05 19:59                                       ` Stephen Smalley
2007-04-05 18:49                                 ` Stephen Smalley
2007-04-02 16:16           ` James Morris
2007-04-02 17:14             ` Joshua Brindle
2007-04-02 17:28               ` Karl MacMillan
2007-04-02 19:47                 ` James Morris
2007-04-02 19:52                   ` Karl MacMillan
2007-04-02 14:52       ` 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=1175792799.17676.10.camel@sgc \
    --to=cpebenito@tresys.com \
    --cc=dwalsh@redhat.com \
    --cc=eparis@parisplace.org \
    --cc=jmorris@namei.org \
    --cc=kmacmillan@mentalrootkit.com \
    --cc=method@manicmethod.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.