All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Moore <paul.moore@hp.com>
To: Paul Menage <menage@google.com>
Cc: Stephan Peijnik <stephan@peijnik.at>,
	"Serge E. Hallyn" <serue@us.ibm.com>, Greg KH <greg@kroah.com>,
	Rafael Konrath <rafael.konrath@gmail.com>,
	linux-security-module@vger.kernel.org,
	Linux Containers <containers@lists.osdl.org>,
	Li Zefan <lizf@cn.fujitsu.com>,
	Grzegorz Nosek <root@localdomain.pl>
Subject: Re: LSM stacking/secondary modules / RFC: Socket MAC LSM
Date: Fri, 16 Jan 2009 15:43:29 -0500	[thread overview]
Message-ID: <200901161543.29320.paul.moore@hp.com> (raw)
In-Reply-To: <6599ad830901150925p771dcc3if60b8ec5ed617963@mail.gmail.com>

On Thursday 15 January 2009 12:25:34 pm Paul Menage wrote:
> On Thu, Jan 15, 2009 at 5:57 AM, Stephan Peijnik <stephan@peijnik.at> 
wrote:
> > So Paul, do you think the interface would be of any use to you?
>
> Potentially, yes. My concern was that we not add another new
> (incomplete) userspace API in cgroups for doing socket permissions -
> hooking into iptables was one way to do it, but if sactl is going to
> become the official way to do this, then hooking a cgroups filter
> into that seems like a good alternative.

I'll confess to knowing very little about cgroups and even less about 
Stephan's sactl concept (only what I've read so far in this thread), 
however, like Paul Menage I tend to prefer solutions which leverage 
existing mechanisms as much as possible.

Conceptually, I've always associated iptables/netfilter as more of a 
per-packet traffic control mechanism whereas the LSM approach was 
geared more towards per-connection and per-application traffic control 
mechanism; although I will be the first to admit this is a very fuzzy 
distinction and could easily be argued the other way as well.  Other 
than the issues around blocking due to userspace notification and 
potential conflicts with other LSMs are there any objections to using 
the LSM interface?

I know I've come out against the LSM networking hooks proposed by the 
TOMOYO developers in the past to address the blocking issues, and while 
I still believe this is not the "ideal" solution I recognize that there 
are certain use cases and "personal firewall" projects that could 
benefit from such LSM hooks.  While I stand by my original objections, 
I'm most interested in making sure that if we do decide to go forward 
with introducing such functionality into the mainline kernel that we do 
so in the most appropriate manner.

-- 
paul moore
linux @ hp

  parent reply	other threads:[~2009-01-16 20:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1231952352.5315.13.camel@sp-laptop3.sp-local>
     [not found] ` <1231952313.31192.27.camel@localhost.localdomain>
     [not found]   ` <1231952907.5315.17.camel@sp-laptop3.sp-local>
     [not found]     ` <1231953606.31192.41.camel@localhost.localdomain>
     [not found]       ` <f639a5c10901140934w3a019308yb5c5c1d73b605fd5@mail.gmail.com>
     [not found]         ` <20090114180129.GB7337@kroah.com>
     [not found]           ` <1231972131.5315.48.camel@sp-laptop3.sp-local>
     [not found]             ` <20090114231645.GA24111@kroah.com>
     [not found]               ` <1231979170.5315.69.camel@sp-laptop3.sp-local>
     [not found]                 ` <20090115004143.GB14467@us.ibm.com>
2009-01-15  0:44                   ` LSM stacking/secondary modules / RFC: Socket MAC LSM Serge E. Hallyn
2009-01-15 13:57                     ` Stephan Peijnik
     [not found]                       ` <1232027832.14136.8.camel-tVJweC8gK2XqZ64ylGF+7cM6rOWSkUom@public.gmane.org>
2009-01-15 15:35                         ` Grzegorz Nosek
2009-01-15 17:29                           ` Paul Menage
     [not found]                           ` <20090115153531.GI17884-yp6mvK3Bdd2rDJvtcaxF/A@public.gmane.org>
2009-01-15 17:50                             ` Stephan Peijnik
2009-01-15 17:25                       ` Paul Menage
2009-01-15 17:58                         ` Stephan Peijnik
2009-01-16 20:43                         ` Paul Moore [this message]
2009-01-18 15:46                           ` Stephan Peijnik

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=200901161543.29320.paul.moore@hp.com \
    --to=paul.moore@hp.com \
    --cc=containers@lists.osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-security-module@vger.kernel.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=menage@google.com \
    --cc=rafael.konrath@gmail.com \
    --cc=root@localdomain.pl \
    --cc=serue@us.ibm.com \
    --cc=stephan@peijnik.at \
    /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.