User: Password:
|
|
Subscribe / Log in / New account

Re: setrlimit(RLIMIT_NETWORK) vs. prctl(???)

From:  Ulrich Drepper <drepper-AT-gmail.com>
To:  Michael Stone <michael-AT-laptop.org>
Subject:  Re: setrlimit(RLIMIT_NETWORK) vs. prctl(???)
Date:  Sat, 12 Dec 2009 21:20:13 -0800
Cc:  linux-kernel-AT-vger.kernel.org, netdev-AT-vger.kernel.org, linux-security-module-AT-vger.kernel.org, Andi Kleen <andi-AT-firstfloor.org>, David Lang <david-AT-lang.hm>, Oliver Hartkopp <socketcan-AT-hartkopp.net>, Alan Cox <alan-AT-lxorguk.ukuu.org.uk>, Herbert Xu <herbert-AT-gondor.apana.org.au>, Valdis Kletnieks <Valdis.Kletnieks-AT-vt.edu>, Bryan Donlan <bdonlan-AT-gmail.com>, Rémi Denis-Courmont <rdenis-AT-simphalempin.com>, Evgeniy Polyakov <zbr-AT-ioremap.net>, "C. Scott Ananian" <cscott-AT-cscott.net>, James Morris <jmorris-AT-namei.org>, "Eric W. Biederman" <ebiederm-AT-xmission.com>, Bernie Innocenti <bernie-AT-codewiz.org>, Mark Seaborn <mrs-AT-mythic-beasts.com>
Archive-link:  Article, Thread

On Sat, Dec 12, 2009 at 21:09, Michael Stone <michael@laptop.org> wrote:
>> That being said, I'm not wedded to the decision. Could you give me some
>> more
>> specific examples of the kinds of changes in low-level userspace code that
>> you're worried about?

It was an accident that I sent the email privately.

As summarized in the paraphrased comment, it's a pain to deal with
rlimit extensions.  It's easy enough to do all this using prctl() with
the same semantics and without forcing any other code to be modified.
I let others more competent to judge the usefulness.  But using rlimit
as the interface is just plain wrong.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



(Log in to post comments)


Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds