From owner-freebsd-current Sat Sep 30 13: 4: 3 2000 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.34.253]) by hub.freebsd.org (Postfix) with ESMTP id 09EAB37B502; Sat, 30 Sep 2000 13:04:00 -0700 (PDT) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.0/8.9.3) with ESMTP id e8UK3wN11058; Sat, 30 Sep 2000 22:03:58 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Jeremy Lea Cc: Mike Meyer , Alexander Langer , current@FreeBSD.ORG Subject: Re: setting device permissions for DEVFS In-Reply-To: Your message of "Sat, 30 Sep 2000 12:06:07 PDT." <20000930120607.C349@shale.csir.co.za> Date: Sat, 30 Sep 2000 22:03:57 +0200 Message-ID: <11056.970344237@critter> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000930120607.C349@shale.csir.co.za>, Jeremy Lea writes: >Hi, > >On Sat, Sep 30, 2000 at 01:53:12PM -0500, Mike Meyer wrote: >> Well, I like your idea better than mine (though device_chmods="first >> second etc" then chmod_first, chmod_second, chmod_etc would be better >> names), but meant to ask - is there some reason that /etc/fbtab can't >> be used for this? Possibly with some beefing up (/etc/defaults, for >> instance)? >> >> Of course, it needs to handle symlinks. I'd rather fix the symlink for >> /dev/scanner than reconfigure sane when I add a new device. Possibly >> device_links, or more work on fbtab? > >Can mtree not be used for this? Seems like the quickest and cleanest >solution to me... You guys are overlooking something about DEVFS: devices may appear post-boot. We need a generic "devd" which finds out that devices have appeared, set their perms (if needed/wanted) and executes any commands needed (getty, mount, etc etc) by the device. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message