diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-07 10:17:00 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-12-21 02:07:39 +0100 |
commit | 8882661bb6d0b0a1bf0d711683e6895abb64c40a (patch) | |
tree | c5407089f43c9b69f50387ae6214656ee648c66b /arch/arm/mach-pxa/trizeps4.c | |
parent | d7ac775674f2c302992311c92af50dee229faa5f (diff) |
vfs: make O_PATH file descriptors usable for 'fchdir()'
We already use them for openat() and friends, but fchdir() also wants to
be able to use O_PATH file descriptors. This should make it comparable
to the O_SEARCH of Solaris. In particular, O_PATH allows you to access
(not-quite-open) a directory you don't have read persmission to, only
execute permission.
Noticed during development of multithread support for ksh93.
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 332a2e1244bd08b9e3ecd378028513396a004a24)
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'arch/arm/mach-pxa/trizeps4.c')
0 files changed, 0 insertions, 0 deletions