summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-09-14 14:48:21 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-21 02:07:29 +0100
commitd7ac775674f2c302992311c92af50dee229faa5f (patch)
treef5efc264beef1df5b925224e6d23bedfcca3cb5a /Kconfig
parent091f708e28ebfc999395fa6d3137871d573ed623 (diff)
vfs: make O_PATH file descriptors usable for 'fstat()'
We already use them for openat() and friends, but fstat() also wants to be able to use O_PATH file descriptors. This should make it more directly comparable to the O_SEARCH of Solaris. Note that you could already do the same thing with "fstatat()" and an empty path, but just doing "fstat()" directly is simpler and faster, so there is no reason not to just allow it directly. See also commit 332a2e1244bd, which did the same thing for fchdir, for the same reasons. Reported-by: ольга крыжановская <olga.kryzhanovska@gmail.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: stable@kernel.org # O_PATH introduced in 3.0+ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> (cherry picked from commit 55815f70147dcfa3ead5738fd56d3574e2e3c1c2) Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions