Re: [patch] pipe: add support for shrinking and growing pipes

From: Linus Torvalds
Date: Wed May 19 2010 - 12:53:08 EST

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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at