netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: andi@firstfloor.org
Cc: cl@linux-foundation.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: Add PGM protocol support to the IP stack
Date: Fri, 19 Mar 2010 14:53:36 -0700 (PDT)	[thread overview]
Message-ID: <20100319.145336.226782717.davem@davemloft.net> (raw)
In-Reply-To: <87tysccjrn.fsf@basil.nowhere.org>

From: Andi Kleen <andi@firstfloor.org>
Date: Fri, 19 Mar 2010 18:18:36 +0100

> Christoph Lameter <cl@linux-foundation.org> writes:
>>
>> I know about the openpgm implementation. Openpbm does this at the user
>> level and requires linking to a library. It is essentially a communication
>> protocol done in user space. It has privilege issues because it has to
>> create PGM packets via a raw socket.
> 
> That seems like a poor reason alone to put something into the kernel
> Perhaps you rather need some way to have unpriviledged raw sockets?
> 
> The classical way to do this is to start suid root, only open
> the socket and then drop privileges.

I completely agree.

We should be able to make a way for unprivileged users to
use RAW sockets in some limited capacity, for cases like this.

But I also don't consider what openpbm has to do right now to
be all that much of a restriction.  You need privileges to
add the protocol to the kernel, you need privileges to run
the userspace variant, there is no real difference.

  reply	other threads:[~2010-03-19 21:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-18 17:58 Add PGM protocol support to the IP stack Christoph Lameter
2010-03-18 21:58 ` Christoph Lameter
2010-03-19 17:18 ` Andi Kleen
2010-03-19 21:53   ` David Miller [this message]
2010-03-19 22:26     ` H. Peter Anvin
2010-03-22 14:24       ` Christoph Lameter
2010-03-22 14:20   ` Christoph Lameter
2010-03-22 16:36     ` Andi Kleen
2010-03-22 16:51       ` Christoph Lameter
2010-03-22 17:43         ` Andi Kleen
2010-03-22 18:07           ` Christoph Lameter
2010-03-22 18:53             ` Andi Kleen
2010-03-22 19:32               ` Christoph Lameter
2010-03-26 17:33               ` Christoph Lameter
2010-03-27 13:11                 ` Andi Kleen
2010-03-27 16:54                   ` Martin Sustrik
2010-03-29 14:50                     ` Christoph Lameter
2010-03-29 15:00                   ` Christoph Lameter
2010-03-29 21:43                     ` Andi Kleen
2010-03-29 23:01               ` H. Peter Anvin
2010-03-30 18:12                 ` Christoph Lameter

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=20100319.145336.226782717.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=andi@firstfloor.org \
    --cc=cl@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).