Project

General

Profile

Actions

Bug #233

closed

lighttpd tries to connect to FAM before dropping priviledges

Added by Anonymous almost 17 years ago. Updated almost 15 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

lighttpd calls stat_cache_init() before dropping priviledges (in the case where server.(user|group)name is set), meaning the fam process is started as root. Just afterwards, lighttpd will drop privilidges and is unable to use the fam process (this is probably also the cause of the HUP's that were being recieved, that changeset 622 works around).

Also, with the introduction of changeset 622, comes the possibility that FAMOpen2() might fail because famd isn't running (if using fam over gamin). The attached patch also takes care of this condition.

One totally unrelated fix is included in the patch. If for some reason setitimer() ever failed, it would cause a segfault due to invalid use of log_error_write().

-- Aaron Walker <ka0ttic


Files

10_all_stat_cache_init_after_setuid.diff (1.37 KB) 10_all_stat_cache_init_after_setuid.diff -- Aaron Walker <ka0ttic Anonymous, 2005-08-27 11:42
Actions #1

Updated by jan almost 17 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

merged in r629

Actions

Also available in: Atom