docs/132260: dhcpd(8) pid not stored in documented location

Daniel Feenberg feenberg at nber.org
Thu Oct 22 19:20:03 UTC 2009


The following reply was made to PR docs/132260; it has been noted by GNATS.

From: Daniel Feenberg <feenberg at nber.org>
To: Josh Paetzel <jpaetzel at FreeBSD.org>
Cc: bug-followup at FreeBSD.org, Giorgos Keramidas <keramida at FreeBSD.org>
Subject: Re: docs/132260: dhcpd(8) pid not stored in documented location
Date: Thu, 22 Oct 2009 14:43:03 -0400 (EDT)

 On Thu, 22 Oct 2009, Josh Paetzel wrote:
 
 > The reason that it puts the pidfile in /var/run/dhcpd is that you are running 
 > with either paranoia or chmodded as the dhcpd user.  In either case it can't 
 > write to /var/run as it starts up as the dhcpd user.
 
 If you say so.
 
 >
 > If you look at the ownership of /var/run/dhcpd you'll see it is owned by 
 > dhcpd:dhcpd
 
 Yes
 
 >
 > If you run as root, or without paranoia it will in fact create the pidfile in 
 > /var/run/
 
 I do run dhcpd as root and without paranoia, so I question this claim. If 
 the daemon changes its uid for security purposes, I have no objection 
 (although there is no mention of this on the man page) but why not fill in 
 /var/run as documented before dropping priviledges?
 
 >
 > I suppose we could patch the man pages depending on the compilation options 
 > or something.
 >
 
 No need for anything so elaborate. You could just add a fourth file path 
 to the list of files used.
 
 Thanks for having a look. It isn't a big deal and I thought I was helping.
 
 Daniel Feenberg
 
 
 > Thanks,
 >
 > Josh Paetzel
 >
 >
 >



More information about the freebsd-doc mailing list