From owner-cvs-src@FreeBSD.ORG Fri Aug 26 18:21:28 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B15E16A41F; Fri, 26 Aug 2005 18:21:28 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C1B643D45; Fri, 26 Aug 2005 18:21:24 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j7QIUj6w028315; Fri, 26 Aug 2005 12:30:45 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <430F5D91.30701@samsco.org> Date: Fri, 26 Aug 2005 12:21:05 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: obrien@FreeBSD.org References: <200508241721.j7OHLcNP061118@repoman.freebsd.org> <20050825060448.Q11335@fledge.watson.org> <20050825154354.GE30465@funkthat.com> <20050826181815.GA56936@dragon.NUXI.org> In-Reply-To: <20050826181815.GA56936@dragon.NUXI.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: John-Mark Gurney , src-committers@FreeBSD.org, Pawel Jakub Dawidek , cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, Robert Watson Subject: Re: cvs commit: src/lib/libutil Makefile libutil.h pidfile.3 pidfile.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 18:21:28 -0000 David O'Brien wrote: > On Thu, Aug 25, 2005 at 08:43:54AM -0700, John-Mark Gurney wrote: > >>Robert Watson wrote this message on Thu, Aug 25, 2005 at 06:05 +0100: >> >>>On Wed, 24 Aug 2005, Pawel Jakub Dawidek wrote: >>> >>> >>>>pjd 2005-08-24 17:21:38 UTC >>>> >>>>FreeBSD src repository >>>> >>>>Modified files: >>>> lib/libutil Makefile libutil.h >>>>Added files: >>>> lib/libutil pidfile.3 pidfile.c >>>>Log: >>>>Add a family of functions for reliable pidfiles handling. >>>> >>>>Idea from: jmg >>>>Discussed on: arch@ >>> >>>Something I'd very much like to see is for daemon pid files to start being >>>placed in /var/run//.pid, as opposed to directly in >>>/var/run. This will allow us to set specific ownership on the parent >>>directory for a pid file, so that privilege is not required to write out a >>>pid file in a safe place. > > > Yuck! Directory hell to find information. > > >>why not add an rc.subr option to precreate the file with the correct >>user? I was running up conserver, and I decided to run it as a seperate >>user, and since I created it as owned by the conserver user, conserver >>just opened and wrote to the file.. >>just a thought... > > > I like this thought better and feel its more along traditional ways. > I think that Robert is thinking beyond the traditional user:group protection model of Unix and towards the much more powerful and flexible MAC protection model. Scott