linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can udev manage /sys/class/leds
@ 2014-01-04 19:38 christophe leroy
  2014-01-05  3:45 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: christophe leroy @ 2014-01-04 19:38 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I've never used udev, and would like to know if it could be the solution 
for changing permission on /sys/class/leds/ attributes.

I can change permissions and ownership at startup for existing files but 
new attributes created during runtime (for instance delay_on and 
delay_off when changing the trigger to blinking) are created with root 
permission only.
I need /sys/class/leds/ attributes owned and permitted to users of group 
'led'.

Can udev manage that ?

Christophe

---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com


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

* Re: Can udev manage /sys/class/leds
  2014-01-04 19:38 Can udev manage /sys/class/leds christophe leroy
@ 2014-01-05  3:45 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2014-01-05  3:45 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Jan 04, 2014 at 08:38:08PM +0100, christophe leroy wrote:
> Hi,
> 
> I've never used udev, and would like to know if it could be the solution 
> for changing permission on /sys/class/leds/ attributes.

Why would the permissions need to be changed?  What would you change
them to, and what would that be based on?

> I can change permissions and ownership at startup for existing files but 
> new attributes created during runtime (for instance delay_on and 
> delay_off when changing the trigger to blinking) are created with root 
> permission only.
> I need /sys/class/leds/ attributes owned and permitted to users of group 
> 'led'.
> 
> Can udev manage that ?

Yes it can tell other programs to do that, look at how the console owner
is handled by the system to give proper ownership of audio and other
device nodes when it is determined it is valid to do so.

thanks,

greg k-h

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

end of thread, other threads:[~2014-01-05  3:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-04 19:38 Can udev manage /sys/class/leds christophe leroy
2014-01-05  3:45 ` Greg KH

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).