Date: Thu, 29 Jan 2009 15:10:21 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: Ed Schouten <ed@80386.nl> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, Daniel Lannstrom <op@trekdanne.se> Subject: Re: Mackbook pro nvidia based video backlight Message-ID: <20090129151021.14131so3ozumpfj4@webmail.leidinger.net> In-Reply-To: <20090128134309.GN17198@hoeg.nl> References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Ed Schouten <ed@80386.nl> (from Wed, 28 Jan 2009 14:43:09 +0100): > * Daniel Lannstrom <op@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. --=20 E.T. GO HOME!!! (And take your Smurfs with you.) http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090129151021.14131so3ozumpfj4>