From owner-freebsd-multimedia Sat Mar 21 18:26:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA17596 for freebsd-multimedia-outgoing; Sat, 21 Mar 1998 18:26:26 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA17574; Sat, 21 Mar 1998 18:26:19 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id NAA18775; Sun, 22 Mar 1998 13:21:39 +1100 Date: Sun, 22 Mar 1998 13:21:39 +1100 From: Bruce Evans Message-Id: <199803220221.NAA18775@godzilla.zeta.org.au> To: jonny@coppe.ufrj.br, multimedia@FreeBSD.ORG, rhh@ct.picker.com Subject: Re: Fxtv vs Stable Cc: stable@FreeBSD.ORG Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >I'm not running stable, but if you want to verify this, make these two >tweaks to tvcapture.c and see if Fxtv works again when not running as root: > >1) Comment out the "|PROT_WRITE" in: > > c->drv_buf = (TV_UINT8 *) mmap( (caddr_t)0, MAX_MMAP_BUF_SIZE, > PROT_READ|PROT_WRITE, 0, c->fd, (off_t)0 ); PROT_READ|PROT_WRITE, 0, c->fd, (off_t)0 ); ^ and change the flags to be valid (to MAP_SHARED). 0 is equivalent to MAP_SHARED, but only due to compatibility cruft that helped cause the security hole. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message