From owner-freebsd-current Sat Sep 30 11:53:15 2000 Delivered-To: freebsd-current@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id A684437B503 for ; Sat, 30 Sep 2000 11:53:13 -0700 (PDT) Received: (qmail 38113 invoked by uid 100); 30 Sep 2000 18:53:12 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14806.13976.356085.876527@guru.mired.org> Date: Sat, 30 Sep 2000 13:53:12 -0500 (CDT) To: Alexander Langer Cc: current@FreeBSD.ORG Subject: Re: setting device permissions for DEVFS In-Reply-To: <20000930201738.A17165@cichlids.cichlids.com> References: <20000929180208.A821@cichlids.cichlids.com> <20000930120037.A4899@cichlids.cichlids.com> <14806.11402.323948.403889@guru.mired.org> <20000930201738.A17165@cichlids.cichlids.com> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alexander Langer writes: > Thus spake Mike Meyer (mwm@mired.org): > > Does it possibly belong in /etc/defaults/rc.devfs, to slurp in > > /etc/rc.devfs (if it exists) at the end? > No - instead we should add something like devfs_permission{0,1,2,etc} > (and maybe ownership) to rc.conf, which can be modified there and > then rc.devfs sets them - similar to the ifconfig stuff. > > Opinions? 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?