From owner-cvs-all Mon Dec 11 6:46: 8 2000 From owner-cvs-all@FreeBSD.ORG Mon Dec 11 06:46:05 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id A026837B400; Mon, 11 Dec 2000 06:46:04 -0800 (PST) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.1/8.11.1) with SMTP id eBBEjle41634; Mon, 11 Dec 2000 09:45:47 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Mon, 11 Dec 2000 09:45:46 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Brian Somers Cc: Dag-Erling Smorgrav , "David E. O'Brien" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc crontab In-Reply-To: <200012110655.eBB6tQG42641@hak.lan.Awfulhak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: robert@fledge.watson.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 11 Dec 2000, Brian Somers wrote: > And does ``lockf /var/run/periodic'' do the same thing ? If the mode on /var/run/periodic is 0644 or 0755 or the like, yes. Any user who can get an open file handle on a file system object can make use of advisory locking. If you want to have a locking object that doesn't allow joe user to lock it, it needs to be appropriately protected by permissions. The current standing proposal for periodic seems to be a /var/run/periodic.lock with mode 0600, owned by root. However, for applications that generate their own lock files dynamically, it would be nice if they used /var/run/${appname}/lockfile as well as /var/run/${appname}/pidfile (or some variation on this theme). This way as we break down use of root privilege, we don't have to break filename compatibility and all that. This suggests that /var/run/periodic/lockfile or /var/periodic/lockfile would both be fine. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message