From owner-freebsd-doc@FreeBSD.ORG Thu Oct 22 19:20:03 2009 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 755DF1065676 for ; Thu, 22 Oct 2009 19:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4BEC98FC1B for ; Thu, 22 Oct 2009 19:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9MJK2GC049005 for ; Thu, 22 Oct 2009 19:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9MJK2D1049004; Thu, 22 Oct 2009 19:20:02 GMT (envelope-from gnats) Date: Thu, 22 Oct 2009 19:20:02 GMT Message-Id: <200910221920.n9MJK2D1049004@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Daniel Feenberg Cc: Subject: Re: docs/132260: dhcpd(8) pid not stored in documented location X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Feenberg List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 19:20:03 -0000 The following reply was made to PR docs/132260; it has been noted by GNATS. From: Daniel Feenberg To: Josh Paetzel Cc: bug-followup@FreeBSD.org, Giorgos Keramidas 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 > > >