diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -658,7 +658,8 @@ static int chown_common(struct dentry * dentry, uid_t user, gid_t group) | |||
658 | newattrs.ia_gid = group; | 658 | newattrs.ia_gid = group; |
659 | } | 659 | } |
660 | if (!S_ISDIR(inode->i_mode)) | 660 | if (!S_ISDIR(inode->i_mode)) |
661 | newattrs.ia_valid |= ATTR_KILL_SUID|ATTR_KILL_SGID; | 661 | newattrs.ia_valid |= |
662 | ATTR_KILL_SUID | ATTR_KILL_SGID | ATTR_KILL_PRIV; | ||
662 | mutex_lock(&inode->i_mutex); | 663 | mutex_lock(&inode->i_mutex); |
663 | error = notify_change(dentry, &newattrs); | 664 | error = notify_change(dentry, &newattrs); |
664 | mutex_unlock(&inode->i_mutex); | 665 | mutex_unlock(&inode->i_mutex); |