projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'misc.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git]
/
fs
/
gfs2
/
inode.c
diff --git
a/fs/gfs2/inode.c
b/fs/gfs2/inode.c
index
6e15434
..
3130f85
100644
(file)
--- a/
fs/gfs2/inode.c
+++ b/
fs/gfs2/inode.c
@@
-1985,8
+1985,8
@@
static int gfs2_setattr(struct user_namespace *mnt_userns,
if (error)
goto out;
- error =
-EPERM
;
- if (
IS_IMMUTABLE(inode) || IS_APPEND(inode)
)
+ error =
may_setattr(&init_user_ns, inode, attr->ia_valid)
;
+ if (
error
)
goto error;
error = setattr_prepare(&init_user_ns, dentry, attr);