git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddf343f
)
vfs: canonicalize create mode in build_open_flags()
author
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 15 Aug 2012 11:01:24 +0000
(13:01 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 15 Aug 2012 11:01:24 +0000
(13:01 +0200)
Userspace can pass weird create mode in open(2) that we canonicalize to
"(mode & S_IALLUGO) | S_IFREG" in vfs_create().
The problem is that we use the uncanonicalized mode before calling vfs_create()
with unforseen consequences.
So do the canonicalization early in build_open_flags().
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
CC: stable@vger.kernel.org
fs/open.c
patch
|
blob
|
history
diff --cc
fs/open.c
Simple merge