Message ID | 1437616850-23266-86-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/inode.c b/fs/inode.c index e846a32..644875b 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -1631,8 +1631,8 @@ int file_remove_suid(struct file *file) error = security_inode_killpriv(dentry); if (!error && killsuid) error = __remove_suid(dentry, killsuid); - if (!error && (inode->i_sb->s_flags & MS_NOSEC)) - inode->i_flags |= S_NOSEC; + if (!error) + inode_has_no_xattr(inode); return error; }