Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76947
b: refs/heads/master
c: 0957f00
h: refs/heads/master
i:
  76945: 01ae9fa
  76943: 97605dd
v: v3
  • Loading branch information
Mark Fasheh committed Jan 25, 2008
1 parent 40681fa commit e6d7820
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7909f2bf835376a20d6dbf853eb459a27566eba2
refs/heads/master: 0957f00796157564281ea6ff2cea7ef4f897775a
6 changes: 6 additions & 0 deletions trunk/fs/ocfs2/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,18 @@ int ocfs2_ioctl(struct inode * inode, struct file * filp,

return ocfs2_change_file_space(filp, cmd, &sr);
case OCFS2_IOC_GROUP_EXTEND:
if (!capable(CAP_SYS_RESOURCE))
return -EPERM;

if (get_user(new_clusters, (int __user *)arg))
return -EFAULT;

return ocfs2_group_extend(inode, new_clusters);
case OCFS2_IOC_GROUP_ADD:
case OCFS2_IOC_GROUP_ADD64:
if (!capable(CAP_SYS_RESOURCE))
return -EPERM;

if (copy_from_user(&input, (int __user *) arg, sizeof(input)))
return -EFAULT;

Expand Down

0 comments on commit e6d7820

Please sign in to comment.