Date: Tue, 13 Mar 2001 10:43:22 -0800 (PST) From: Cameron Grant <cg@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm datatypes.h dsp.c sound.c Message-ID: <200103131843.f2DIhNJ55076@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
cg 2001/03/13 10:43:22 PST
Modified files:
sys/dev/sound/pcm datatypes.h dsp.c sound.c
Log:
fix a panic triggerable by anyone with read/write access to the audio
devices. opening /dev/{dsp,dspW,audio}0 and then opening a different device
from that list and closing it resulted in a panic when any operation is
performed on the first fd.
we prevent this happening by denying the second open unless it uses the same
minor device as the first.
PR: kern/25519
Revision Changes Path
1.24 +2 -2 src/sys/dev/sound/pcm/datatypes.h
1.34 +5 -1 src/sys/dev/sound/pcm/dsp.c
1.39 +7 -1 src/sys/dev/sound/pcm/sound.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103131843.f2DIhNJ55076>
