#5 daemon double fork / pidfile owner / files permissions

closed
nobody
None
5
2004-03-04
2004-03-04
No

Hello, this patch fixes that:
- use double fork to become a daemon
- change gid/uid before writing pidfile, so that the
pidfile can later be removed by middleman when exiting
- use 0640 permission for logfile. the logfile must
not be readable by lambda users, because they could spy
other people
- put umask(027) before mainloop, so that cache file
are not readable by lambda users

Discussion

  • jason mclaughlin

    • status: open --> closed
     
  • jason mclaughlin

    Logged In: YES
    user_id=432781

    Thanks.. looks good. Patch applied.

     

Log in to post a comment.