From owner-freebsd-usb@FreeBSD.ORG Tue Sep 28 23:03:57 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 192201065679 for ; Tue, 28 Sep 2010 23:03:57 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from fallbackmx09.syd.optusnet.com.au (fallbackmx09.syd.optusnet.com.au [211.29.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 990EB8FC1D for ; Tue, 28 Sep 2010 23:03:56 +0000 (UTC) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by fallbackmx09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o8SKv6sC021966 for ; Wed, 29 Sep 2010 06:57:06 +1000 Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail14.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o8SKus7E013562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Sep 2010 06:56:55 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id o8SKufuT047505; Wed, 29 Sep 2010 06:56:41 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id o8SKudBP047504; Wed, 29 Sep 2010 06:56:39 +1000 (EST) (envelope-from peter) Date: Wed, 29 Sep 2010 06:56:39 +1000 From: Peter Jeremy To: Hans Petter Selasky Message-ID: <20100928205639.GA47266@server.vk2pj.dyndns.org> References: <201009271421.42082.hselasky@c2i.net> <20100927153419.13263v44ijw12m4g@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <20100927153419.13263v44ijw12m4g@webmail.leidinger.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [USB] Keyboard, mouse and ergonomy X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 23:03:57 -0000 --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Sep-27 15:34:19 +0200, Alexander Leidinger wrote: >Quoting Hans Petter Selasky (from Mon, 27 Sep 2010 =20 >14:21:42 +0200): >> I was thinking about adding a sysctl to ukbd and ums that shows how many >> keypresses have been done and how many pixels you have moved the mouse d= uring >> a day. I agree with Alexander's comments on the usefulness or otherwise of just counting keypresses and mouse pixels. Mouse clicks or number of mouse movements is probably more useful for ergonomics than pixels moved. >Regarding the security: > - don't make this real-time stats, add some artificial delay Delaying the reporting of actual keystroke numbers by several seconds is rather painful. If you want to go this path, either just update the visible count every N seconds (have a callout that triggers every N seconds) or M events (where N or M are configurable and maybe small random numbers). > - make it depending on a compile time knob (disabled > by default) and issue a warning on device attach if > compiled in My personal view is that this is being excessively paranoid. Note that FreeBSD already reports the total number characters read/written via TTY devices. I don't think it's necessary to go as far as compiled-out by default with warnings if enabled - a runtime knob is adequate. Having the sysctl disabled by default and only enabled by root (maybe only readable by root) should be adequate since there are plenty of other mechanisms for root to obtain actual keypress and mouse movement data. --=20 Peter Jeremy --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkyiVocACgkQ/opHv/APuIeyewCeIX9xLWcMI5Z0FOME24zBZEDR jWMAmwWyr6qrluWHnMFg8HxPgWitPbaq =FcUP -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--