All of lore.kernel.org
 help / color / mirror / Atom feed
* sysfs permitions on class leds
@ 2007-05-25 18:37 Rodrigo Pereira
  2007-05-27  2:45 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Rodrigo Pereira @ 2007-05-25 18:37 UTC (permalink / raw)
  To: linux-kernel

(sorry my English)

I'm helping Márton Németh  in a experimental mail led driver
leds-clevo-mail.c for clevo laptops and I have problems with this
driver:
this files
/sys/class/<ledname>trigger,  /sys/class/<ledname>/dalay_on and
/sys/class/<ledname>/delay_off  are  created  as 644 permissions. Also
ROOT controls the led. I think write udev rules but my rules don't
change this permissions.

The clevo mail led is a trigger led (time-trigger) for blinks the led
when a new mail arrives.

How can I change the permissions of the sysfs objects in runtime or userspace?

the code of this driver is found at
http://sourceforge.net/projects/clevo-mailled/

Thank you.

Rodrigo Pereira

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

* Re: sysfs permitions on class leds
  2007-05-25 18:37 sysfs permitions on class leds Rodrigo Pereira
@ 2007-05-27  2:45 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2007-05-27  2:45 UTC (permalink / raw)
  To: Rodrigo Pereira; +Cc: linux-kernel

On Fri, May 25, 2007 at 03:37:46PM -0300, Rodrigo Pereira wrote:
>  (sorry my English)
> 
>  I'm helping M?rton N?meth  in a experimental mail led driver
>  leds-clevo-mail.c for clevo laptops and I have problems with this
>  driver:
>  this files
>  /sys/class/<ledname>trigger,  /sys/class/<ledname>/dalay_on and
>  /sys/class/<ledname>/delay_off  are  created  as 644 permissions. Also
>  ROOT controls the led. I think write udev rules but my rules don't
>  change this permissions.
> 
>  The clevo mail led is a trigger led (time-trigger) for blinks the led
>  when a new mail arrives.
> 
>  How can I change the permissions of the sysfs objects in runtime or 
>  userspace?

Just do a 'chmod' on the sysfs file.  If you have the proper permissions
to do that, it will stick for as long as the sysfs file stays around.

hope this helps,

greg k-h

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

end of thread, other threads:[~2007-05-27  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25 18:37 sysfs permitions on class leds Rodrigo Pereira
2007-05-27  2:45 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.