diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-30 08:35:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-22 08:41:44 +0100 |
commit | 0ffc34c0d09a7d36ff84d1ac506a352a06ef5e4e (patch) | |
tree | 6bb5e763a314d5b7b8e0bf59b6210a6c49d3b773 /fs/ext4 | |
parent | fa759b5d100c8b0d2ec2b83fcac990f2c3ac13b7 (diff) | |
download | kernel_samsung_smdk4412-0ffc34c0d09a7d36ff84d1ac506a352a06ef5e4e.zip kernel_samsung_smdk4412-0ffc34c0d09a7d36ff84d1ac506a352a06ef5e4e.tar.gz kernel_samsung_smdk4412-0ffc34c0d09a7d36ff84d1ac506a352a06ef5e4e.tar.bz2 |
vfs: allow O_PATH file descriptors for fstatfs()
commit 9d05746e7b16d8565dddbe3200faa1e669d23bbf upstream.
Olga reported that file descriptors opened with O_PATH do not work with
fstatfs(), found during further development of ksh93's thread support.
There is no reason to not allow O_PATH file descriptors here (fstatfs is
very much a path operation), so use "fdget_raw()". See commit
55815f70147d ("vfs: make O_PATH file descriptors usable for 'fstat()'")
for a very similar issue reported for fstat() by the same team.
Reported-and-tested-by: ольга крыжановская <olga.kryzhanovska@gmail.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions