nginx/auto
Valentin Bartenev 7b37384140 Disable symlinks: use O_PATH to open path components.
It was introduced in Linux 2.6.39, glibc 2.14 and allows to obtain
file descriptors without actually opening files.  Thus made it possible
to traverse path with openat() syscalls without the need to have read
permissions for path components.  It is effectively emulates O_SEARCH
which is missing on Linux.

O_PATH is used in combination with O_RDONLY.  The last one is ignored
if O_PATH is used, but it allows nginx to not fail when it was built on
modern system (i.e. glibc 2.14+) and run with a kernel older than 2.6.39.
Then O_PATH is unknown to the kernel and ignored, while O_RDONLY is used.

Sadly, fstat() is not working with O_PATH descriptors till Linux 3.6.
As a workaround we fallback to fstatat() with the AT_EMPTY_PATH flag
that was introduced at the same time as O_PATH.
2013-09-02 08:07:59 +04:00
..
cc Configure: fixed autotest cleanup commands. 2013-07-31 18:16:40 +04:00
lib Updated PCRE used for win32 builds. 2013-08-23 22:54:08 +04:00
os Disable symlinks: use O_PATH to open path components. 2013-09-02 08:07:59 +04:00
types Configure: fixed autotest cleanup commands. 2013-07-31 18:16:40 +04:00
configure Made sure to run configure in a "C" locale. 2012-07-24 15:16:09 +00:00
define Copyright updated. 2012-01-18 15:07:43 +00:00
endianness Configure: fixed autotest cleanup commands. 2013-07-31 18:16:40 +04:00
feature Configure: fixed autotest cleanup commands. 2013-07-31 18:16:40 +04:00
have Copyright updated. 2012-01-18 15:07:43 +00:00
have_headers Copyright updated. 2012-01-18 15:07:43 +00:00
headers Copyright updated. 2012-01-18 15:07:43 +00:00
include Configure: fixed autotest cleanup commands. 2013-07-31 18:16:40 +04:00
init Copyright updated. 2012-01-18 15:07:43 +00:00
install Configure: fixed make macros to use parentheses instead of braces. 2012-09-11 12:43:59 +00:00
make Correct plural form for "path" in the whole source base. 2012-09-28 13:49:26 +00:00
modules Auth request module import. 2013-08-21 19:19:47 +04:00
nohave Copyright updated. 2012-01-18 15:07:43 +00:00
options Auth request module import. 2013-08-21 19:19:47 +04:00
sources Auth request module import. 2013-08-21 19:19:47 +04:00
stubs Copyright updated. 2012-01-18 15:07:43 +00:00
summary Copyright updated. 2012-01-18 15:07:43 +00:00
unix Core: guard use of AI_ADDRCONFIG. 2013-08-05 13:44:56 +04:00