Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128802
b: refs/heads/master
c: df5b552
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Chris Mason committed Sep 25, 2008
1 parent 30bd049 commit 46c5b0e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: f46b5a66b3316ef2f8febfe4c56e2d555e2c3979
refs/heads/master: df5b5520b21d8a2554ede65c09b288833c77144d
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,9 @@ long btrfs_ioctl_trans_start(struct file *file)
struct btrfs_trans_handle *trans;
int ret = 0;

if (!capable(CAP_SYS_ADMIN))
return -EPERM;

mutex_lock(&root->fs_info->fs_mutex);
if (file->private_data) {
ret = -EINPROGRESS;
Expand Down

0 comments on commit 46c5b0e

Please sign in to comment.