From owner-freebsd-current Sun Mar 3 9: 2:39 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id E4C9937B404 for ; Sun, 3 Mar 2002 09:02:36 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020303170236.FBRF2626.rwcrmhc51.attbi.com@blossom.cjclark.org>; Sun, 3 Mar 2002 17:02:36 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g23H2ZO84972; Sun, 3 Mar 2002 09:02:35 -0800 (PST) (envelope-from cjc) Date: Sun, 3 Mar 2002 09:02:35 -0800 From: "Crist J. Clark" To: Riccardo Torrini Cc: current@FreeBSD.ORG Subject: Re: devfs(5) Permissions Message-ID: <20020303090235.C84637@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20020303083136.A84637@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from riccardo@torrini.org on Sun, Mar 03, 2002 at 05:42:10PM +0100 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Mar 03, 2002 at 05:42:10PM +0100, Riccardo Torrini wrote: > On 03-Mar-2002 (16:31:36/GMT) Crist J. Clark wrote: > > > How does one change the permissions on dynamically created > > devices? That is, when the node comes into existence, it has > > the permissions I want, and not necessarily the defaults. > > You can (must?) use /etc/rc.devfs > > [...] > # Setup DEVFS, ie permissions, links etc. > [...] I think some people missed the point of the earlier question. My problem is with devices that are created dynamically as they get used. I can put, chmod 640 /dev/bpf{0,1,2,3} In rc.devfs, and I will have joy for the first four bpf(4) devices. That command creates them and gives them the permissions I want. However, once someone tries to use /dev/bpf4, a new device is dynamically created with the default permissions, not the permissions I want. But creating 'n' devices at boot will do for now (especially since we used to be restricted to 'n' bpf(4) devices in the kernel configuration, so it almost resembles historic behavior). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message