[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1005190946540.23538@i5.linux-foundation.org>
Date: Wed, 19 May 2010 09:49:35 -0700 (PDT)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Miklos Szeredi <miklos@...redi.hu>
cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
jens.axboe@...cle.com, akpm@...ux-foundation.org
Subject: Re: [patch] pipe: add support for shrinking and growing pipes
On Wed, 19 May 2010, Miklos Szeredi wrote:
>
> One issue I see is that it's possible to grow pipes indefinitely.
> Should this be restricted to privileged users?
Yes. But perhaps only if it grows past the default (or perhaps "default*2"
or similar). That way a normal user could shrink the pipe buffers, and
then grow them again if he wants to.
Oh, and I think you need to also require that there be at least two
buffers. Otherwise we can't guarantee POSIX behavior, I think.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists