Quoting Ed Schouten <e...@80386.nl> (from Wed, 28 Jan 2009 14:43:09 +0100):

* Daniel Lannstrom <o...@trekdanne.se> wrote:
> I'm asking which method will be the best to interface the driver with
> userland applications?

You might want to make it a character device driver. And write a small
userland control program. Sysctl isn't really made for this kind of
functionality.

No. sysctl is good for doing stuff like this. An even better approach

So you want that either
 - a daemon running as root is written which listens to user
   requests to set the backlight via sysctl
or
 - a SUID root program is written that sets the backlight
   via sysctl
instead of
 - a character device with appropriate filesystem permissions
   which allows to not go the SUID root or daemon running as
   root way
?

Bye,
Alexander.

--
E.T. GO HOME!!!  (And take your Smurfs with you.)

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to