linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* /etc/udev/permissions.d handling for udev
@ 2005-08-08 13:41 Tomasz Michał Łukaszewski
  2005-08-08 14:15 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Tomasz Michał Łukaszewski @ 2005-08-08 13:41 UTC (permalink / raw)
  To: linux-hotplug


Hello,

I've installed udev and noted that it isn't able to manage access rights
for device nodes. I need this functionality, so I've written some code
(called from udev_rules_get_name()) that reads contents of
/etc/udev/permissions.d and sets owner, group and access rights accordingly.
A patch for udev-065 is available at

http://home.elka.pw.edu.pl/~tlukasze/udev/udev-065-permissions.patch.gz

The syntax of permissions file is based on etc/udev/udev.permissions
or etc/udev/slackware/udev.permissions, distributed with the sources.

Tomasz Lukaszewski


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /etc/udev/permissions.d handling for udev
  2005-08-08 13:41 /etc/udev/permissions.d handling for udev Tomasz Michał Łukaszewski
@ 2005-08-08 14:15 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-08-08 14:15 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Aug 08, 2005 at 03:41:53PM +0200, Tomasz Michał Łukaszewski wrote:
> 
> Hello,
> 
> I've installed udev and noted that it isn't able to manage access rights
> for device nodes. I need this functionality, so I've written some code
> (called from udev_rules_get_name()) that reads contents of
> /etc/udev/permissions.d and sets owner, group and access rights accordingly.
> A patch for udev-065 is available at
> 
> http://home.elka.pw.edu.pl/~tlukasze/udev/udev-065-permissions.patch.gz
> 
> The syntax of permissions file is based on etc/udev/udev.permissions
> or etc/udev/slackware/udev.permissions, distributed with the sources.

/etc/udev/permissions.d/ was removed long ago for good reason. Use
OWNER=, GROUP=, MODE= in a /etc/udev/rules.d/ file. You can even match
against a whole subsystem with that model:
  SUBSYSTEM="block", GROUP="disk"

This patch or anything similar that reads a different source of permissions
does not make sense in the current udev. Better convince your distro to
switch to the unified format.

Thanks,
Kay


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-08 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 13:41 /etc/udev/permissions.d handling for udev Tomasz Michał Łukaszewski
2005-08-08 14:15 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).