From owner-freebsd-multimedia Mon Nov 3 11:19:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA25464 for multimedia-outgoing; Mon, 3 Nov 1997 11:19:00 -0800 (PST) (envelope-from owner-freebsd-multimedia) Received: from gaia.coppe.ufrj.br (cisigw.coppe.ufrj.br [146.164.5.200]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA25455 for ; Mon, 3 Nov 1997 11:18:53 -0800 (PST) (envelope-from jonny@coppe.ufrj.br) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.7/8.8.7) id RAA07551; Mon, 3 Nov 1997 17:18:41 -0200 (EDT) (envelope-from jonny) From: Joao Carlos Mendes Luis Message-Id: <199711031918.RAA07551@gaia.coppe.ufrj.br> Subject: Re: A small addition to the bt848 driver... In-Reply-To: <199711030511.GAA17013@labinfo.iet.unipi.it> from Luigi Rizzo at "Nov 3, 97 06:11:06 am" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Mon, 3 Nov 1997 17:18:41 -0200 (EDT) Cc: multimedia@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk #define quoting(Luigi Rizzo) // if (write) { // i2cWrite( bktr, i2c_addr, i2c_port, data); // } else { // data = i2cRead( bktr, i2c_addr); // } Is there something harm that a mortal user could do using direct access to i2c bus ? If so, consider checking for root privs. This seems to much of low level access to allow to everybody. chmod'ing the device may not be an option. I would not want every bt848 program to be suid either. And depending on the power of i2c (think hardware debug), fbtab is not an option also. Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 jonny@coppe.ufrj.br Universidade Federal do Rio de Janeiro UFRJ/COPPE/CISI PGP fingerprint: 29 C0 50 B9 B6 3E 58 F2 83 5F E3 26 BF 0F EA 67