diff options
Diffstat (limited to 'fs/pipe.c')
-rw-r--r-- | fs/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1178,7 +1178,7 @@ long pipe_fcntl(struct file *file, unsigned int cmd, unsigned long arg) | |||
1178 | nr_pages = (arg + PAGE_SIZE - 1) >> PAGE_SHIFT; | 1178 | nr_pages = (arg + PAGE_SIZE - 1) >> PAGE_SHIFT; |
1179 | nr_pages = roundup_pow_of_two(nr_pages); | 1179 | nr_pages = roundup_pow_of_two(nr_pages); |
1180 | 1180 | ||
1181 | if (!capable(CAP_SYS_ADMIN) && nr_pages > pipe_max_pages) { | 1181 | if (!capable(CAP_SYS_RESOURCE) && nr_pages > pipe_max_pages) { |
1182 | ret = -EPERM; | 1182 | ret = -EPERM; |
1183 | goto out; | 1183 | goto out; |
1184 | } else if (nr_pages < 1) { | 1184 | } else if (nr_pages < 1) { |