Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199912
b: refs/heads/master
c: 419f836
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Jun 3, 2010
1 parent 69df827 commit 00624c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a6ca57de92fcae34603551ac944aa74758c30d4
refs/heads/master: 419f8367ea37e5adc5d95479e8fd5554b92b49fe
2 changes: 1 addition & 1 deletion trunk/fs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ long pipe_fcntl(struct file *file, unsigned int cmd, unsigned long arg)
nr_pages = (arg + PAGE_SIZE - 1) >> PAGE_SHIFT;
nr_pages = roundup_pow_of_two(nr_pages);

if (!capable(CAP_SYS_ADMIN) && nr_pages > pipe_max_pages) {
if (!capable(CAP_SYS_RESOURCE) && nr_pages > pipe_max_pages) {
ret = -EPERM;
goto out;
} else if (nr_pages < 1) {
Expand Down

0 comments on commit 00624c3

Please sign in to comment.