pipe: F_SETPIPE_SZ should return -EPERM for non-root
authorJens Axboe <jens.axboe@oracle.com>
Mon, 24 May 2010 17:15:57 +0000 (19:15 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 24 May 2010 17:15:57 +0000 (19:15 +0200)
commit0191f8697bbdfefcd36e7b8dc3eeddfe82893e4b
tree2be5e7911e227b46d2e7b6ba3db9795ede71d8f6
parente36f724b4ae70e443a7d152929b60059cbfa1a26
pipe: F_SETPIPE_SZ should return -EPERM for non-root

If the passed in size is larger than what has been set as the
system wide limit and the user is not root, we want to return
permission denied (not invalid value).

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/pipe.c