From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 20 Dec 2004 13:36:51 +0000 Subject: Re: udev: remove permissions file from udev Message-Id: <1103549812.5435.27.camel@localhost.localdomain> List-Id: References: <1103476209.5746.19.camel@localhost.localdomain> In-Reply-To: <1103476209.5746.19.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sun, 2004-12-19 at 18:10 +0100, Kay Sievers wrote: > As discussed this week, here we remove the explicit permissions file > from udev. All permissions should be specified along with the rule now, > to have only one source of policy. > > This simplifies the whole udev process and removes the need to parse a > second file in a different format. The rule file will grow a bit to > apply some permissions, but its an overall win. > > You may look at the changes at: > http://vrfy.bkbits.net:8080/udev/ChangeSet@-8d?nav=index.html > > or pull it from: > bk://vrfy.bkbits.net/udev > To get this working, the current rules file needs to be updated. I > started to convert the gentoo and the Fedora file available in the tree. > Any help here is appreciated, cause we need to be sure, that it will > work before we make a new release. Just an example how nice the permissions application can work now. The following line applies the "disk" group ownership to all block devices not catched by an earlier explicit rule. There is no longer the need to catch all the different node names of a device class. --- a/etc/udev/gentoo/udev.rules 2004-12-20 14:24:22 +01:00 +++ b/etc/udev/gentoo/udev.rules 2004-12-20 14:24:22 +01:00 @@ -207,6 +207,9 @@ # rem_ide devices KERNEL="microdrive*", NAME="%k", GROUP="disk" +# all block devices +SUBSYSTEM="block", NAME="%k", GROUP="disk" + # kbd devices KERNEL="kbd", NAME="%k", MODE="0664" Thanks, Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel