ngx_os_specific_status on Linux and access permission to /proc/sys

Igor Sysoev is at
Fri Jan 4 18:31:38 MSK 2008

On Fri, Jan 04, 2008 at 04:01:01PM +0100, Manlio Perillo wrote:

> I'm testing mod_wsgi on an Italian hosting company and they reported me 
> that the Linux kernel they use does not allow the access to /proc/sys.
> Now, as far as I can see the information from /proc/sys is used for 
> information only (printed in the log file), so I think that nginx should 
> not abort if reading from /proc/sys is not allowed.
> Better if the NGX_HAVE_OS_SPECIFIC_INIT is checked in autoconfigure 
> phase, but nginx can just print:
> 	OS: unknow (or just Linux?)
> in the log.
> Not sure if somebody else have this limitation on /proc/sys

It was changed in 0.6.16:

Changes with nginx 0.6.16                                        29 Oct 2007

    *) Change: now the uname(2) is used on Linux instead of procfs.
       Thanks to Ilya Novikov.

Igor Sysoev

More information about the nginx mailing list