OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: /var/lock permissions
From: Olaf Kirch (okircaldera.de)
Date: Thu Jul 27 2000 - 07:59:10 CDT


On Wed, Jul 26, 2000 at 10:32:10AM -0700, Jim Dennis wrote:
> Certainly the process of checking for and obtaining a lockfile
> (including checking for process status and stale lock removal)
> should be abstracted and consolidated into a single program.

I have a setgid uucp helper that does roughly this, and a bit more.
It checks whether the user is allowed to use that modem, then
locks it, then opens it, then passes the fd back to the invoking
program via a unix socketpair.

The problem is that many apps require a heavy overhaul in order to
work with such an approach.

FWIW, I think that having different helpers for different tasks
is not really useful. Dialout, fax, etc should be treated as
equivalent.

Olaf

-- 
Olaf Kirch         |  --- o --- Nous sommes du soleil we love when we play
okirmonad.swb.de  |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax
okircaldera.de    +-------------------- Why Not?! -----------------------
         UNIX, n.: Spanish manufacturer of fire extinguishers.