From owner-cvs-all@FreeBSD.ORG Mon Oct 15 20:21:24 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AC0716A468; Mon, 15 Oct 2007 20:21:24 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 0119713C457; Mon, 15 Oct 2007 20:21:23 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (f6q2cb740xw280ik@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l9FKLHrN083329; Mon, 15 Oct 2007 13:21:17 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l9FKLFWj083328; Mon, 15 Oct 2007 13:21:15 -0700 (PDT) (envelope-from jmg) Date: Mon, 15 Oct 2007 13:21:15 -0700 From: John-Mark Gurney To: Alexander Leidinger Message-ID: <20071015202115.GP39759@funkthat.com> Mail-Followup-To: Alexander Leidinger , Poul-Henning Kamp , Wilko Bulte , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <20071015152408.10kvgtog6cooc4wc@webmail.leidinger.net> <48258.1192460507@critter.freebsd.dk> <20071015210909.1b6b693b@deskjail> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071015210909.1b6b693b@deskjail> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Mon, 15 Oct 2007 13:21:17 -0700 (PDT) Cc: Wilko Bulte , Poul-Henning Kamp , src-committers@FreeBSD.org, cvs-all@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: cvs commit: src/etc Makefile sensorsd.conf src/etc/defaults rc.conf src/etc/rc.d Makefile sensorsd src/lib/libc/gen sysctl.3 src/sbin/sysctl sysctl.8 sysctl.c src/share/man/man5 rc.conf.5 src/share/man/man9 Makefile sensor_attach.9 src/sys/conf files ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 20:21:24 -0000 Alexander Leidinger wrote this message on Mon, Oct 15, 2007 at 21:09 +0200: > > >I already told you last time > > >that the current way (access to the i2c or smbus) needs more access > > >rights than using the userland parts of the sensors framework. > > > > More rights than what exactly ? > > One popular userland temperature/voltage reading tool (as it supports a > lot of popular devices) is mbmon. It is currently a SUID root > application. It is like this as it accesses the smbus and/or ISA I/O > ports directly. If we forget the ISA I/O ports part, we could maybe > switch to a mbmon-user, but I don't really want to have such an user be > able to query every device on the smbus. > > systat and sysctl are not SUID/SGID and don't require some special > rights in /dev. I would say this is a big difference in favour of the > sensors framework. Did you completely ignore the discussion back in July? I didn't bring it up, because someone else did, but the simple solution is a socket like /var/run/log or /var/run/devd.pipe, that a userland daemon running as root that has access to ISA I/O and related resources... It's that simple... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."