From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 29 14:10:30 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA3101065675 for ; Thu, 29 Jan 2009 14:10:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 800E28FC14 for ; Thu, 29 Jan 2009 14:10:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2D9C6.dip.t-dialin.net [217.226.217.198]) by redbull.bpaserver.net (Postfix) with ESMTP id BE1B62E0EF; Thu, 29 Jan 2009 15:10:25 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 2D62812D459; Thu, 29 Jan 2009 15:10:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1233238222; bh=3PsS5z+JsFwNBChgiilelOCZENb2dS3Va DPqdegfaDE=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Hs2gL5FCgHoNTdJQS08C9aOahfAc4WBSsLpRtfuiXYgU43ol1WgKrcD42ZHWMv6Tg AHzNoX3Da6wuosEMG+wTtoVU4ZkfIA4mKmDaz4EewSOSpYJM7Z0E/ZEpCzuaqGh0Dh6 GN7O0eD6KMKpZK2WJwV2s1inXprz82UR8FJGz16n1ba6cUyVY4RxJML2mmrPF9ROFIT ZZcld8MFfmntvwgQd45ZxblzS7VJ3ONukRuK9Y65SNimu3ih3+HZ/q5ns79U87CMScS TieaEBK6Y7JJHaFTx7diHTUskQDa6wDCKz1B5mKUxkivjjjQBdBSAe6OC/9nBqdcquo Yr0nMymBA== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n0TEALuG025722; Thu, 29 Jan 2009 15:10:21 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 29 Jan 2009 15:10:21 +0100 Message-ID: <20090129151021.14131so3ozumpfj4@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 29 Jan 2009 15:10:21 +0100 From: Alexander Leidinger To: Ed Schouten References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl> In-Reply-To: <20090128134309.GN17198@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: BE1B62E0EF.A6FE1 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.4, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10, VOWEL_TOCC_5 0.50) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Thu, 29 Jan 2009 14:36:49 +0000 Cc: FreeBSD Hackers , Daniel Lannstrom Subject: Re: Mackbook pro nvidia based video backlight X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 14:10:31 -0000 Quoting Ed Schouten (from Wed, 28 Jan 2009 14:43:09 +0100): > * Daniel Lannstrom 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