From owner-freebsd-multimedia Wed Jun 3 01:22:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA27456 for freebsd-multimedia-outgoing; Wed, 3 Jun 1998 01:22:56 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA27450 for ; Wed, 3 Jun 1998 01:22:54 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.8/8.8.8) with SMTP id BAA23237; Wed, 3 Jun 1998 01:22:50 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Wed, 3 Jun 1998 01:22:50 -0700 (PDT) From: Doug White Reply-To: Doug White To: richard@cogsci.ed.ac.uk cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: fxtv - mmap of driver buffer failed In-Reply-To: <24168.199806030144@cockburn.cogsci.ed.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 3 Jun 1998 richard@cogsci.ed.ac.uk wrote: > Having not looked at this for a long time, I just installed the 3.0 > SNAP 980520 and the fxtv 0.46 package that comes with it. Unless I > run it as root, I get the message "mmap of driver buffer failed: > Permission denied". What have I missed here? I think this is FXTV falling behind reality. It open /dev/bktr0 read-only but requests read-write protections on the mmap()'d buffer. However this is a security hole since you can still write the device even if you only have read-only perms. It can be overridden by the superuser. See rev 1.75 of src/sys/vm/vm_mmap.c for details. The fix is to have fxtv open /dev/bktr0 O_RDWR and not O_RDONLY. It's too late in the night for me to try this tho. For all I know this was fixed in the fxtv 0.47 which just came out. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message