Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54702
b: refs/heads/master
c: ee6f958
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed May 8, 2007
1 parent 33c63cb commit 36c2ab9
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: 2f1a2ccb9c0de632ab07193becf5f7121794f6ae
refs/heads/master: ee6f958291e2a768fd727e7a67badfff0b67711a
3 changes: 3 additions & 0 deletions trunk/fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,9 @@ static int do_change_type(struct nameidata *nd, int flag)
int recurse = flag & MS_REC;
int type = flag & ~MS_REC;

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

if (nd->dentry != nd->mnt->mnt_root)
return -EINVAL;

Expand Down

0 comments on commit 36c2ab9

Please sign in to comment.