From: Linus Torvalds Date: Sat, 7 Jul 2012 17:17:00 +0000 (-0700) Subject: vfs: make O_PATH file descriptors usable for 'fchdir()' X-Git-Tag: v3.2.23~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6d2d473ca73cb30cf25a6940b1dff3cc78b513f;p=pandora-kernel.git vfs: make O_PATH file descriptors usable for 'fchdir()' commit 332a2e1244bd08b9e3ecd378028513396a004a24 upstream. 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: ольга крыжановская Cc: Al Viro Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed