Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 1998 13:21:39 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        jonny@coppe.ufrj.br, multimedia@FreeBSD.ORG, rhh@ct.picker.com
Cc:        stable@FreeBSD.ORG
Subject:   Re: Fxtv vs Stable
Message-ID:  <199803220221.NAA18775@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803220221.NAA18775>