diff options
-rw-r--r-- | fs/sysfs/inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 9f783d4e4b51..220b758523ae 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -117,10 +117,6 @@ int sysfs_setattr(struct dentry *dentry, struct iattr *iattr) | |||
117 | return error; | 117 | return error; |
118 | 118 | ||
119 | iattr->ia_valid &= ~ATTR_SIZE; /* ignore size changes */ | 119 | iattr->ia_valid &= ~ATTR_SIZE; /* ignore size changes */ |
120 | if (iattr->ia_valid & ATTR_MODE) { | ||
121 | if (!in_group_p(inode->i_gid) && !capable(CAP_FSETID)) | ||
122 | iattr->ia_mode &= ~S_ISGID; | ||
123 | } | ||
124 | 120 | ||
125 | error = inode_setattr(inode, iattr); | 121 | error = inode_setattr(inode, iattr); |
126 | if (error) | 122 | if (error) |