diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-06-08 03:36:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-06-08 03:36:59 +0200 |
commit | 8397345172aa5cdcbc133977af9d525f45b874ea (patch) | |
tree | 9b1077a62bbe06d20f1e49d1aa842db0435be085 /mm | |
parent | Linux 3.0-rc2 (diff) | |
parent | vfs: make unlink() and rmdir() return ENOENT in preference to EROFS (diff) | |
download | linux-8397345172aa5cdcbc133977af9d525f45b874ea.tar.xz linux-8397345172aa5cdcbc133977af9d525f45b874ea.zip |
Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
vfs: make unlink() and rmdir() return ENOENT in preference to EROFS
lmLogOpen() broken failure exit
usb: remove bad dput after dentry_unhash
more conservative S_NOSEC handling
Diffstat (limited to 'mm')
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index d7b10578a64b..a8251a8d3457 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2000,7 +2000,7 @@ int file_remove_suid(struct file *file) error = security_inode_killpriv(dentry); if (!error && killsuid) error = __remove_suid(dentry, killsuid); - if (!error) + if (!error && (inode->i_sb->s_flags & MS_NOSEC)) inode->i_flags |= S_NOSEC; return error; |