rc: virtual_oss: Create a loopback device in the default configuration #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "christos/loop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The loopback device allows us to record desktop sound by reading from
it, or even use it as an input device, for example during a call.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
What are the default permissions of the device? Does it let an unprivileged application record all sound that gets written to /dev/dsp?
Devices are created with 0666, see
voss_dsp_perminusr.sbin/virtual_oss/virtual_oss/main.c. So unprivileged users can indeed "snoop" the audio getting written to /dev/dsp.That being said, if we don't let unprivileged users access it, someone who wants to stream their desktop audio, say, during a video conference, or a live stream, has to run the browser or streaming program as root, for example.
What threat are you having in mind?
@christos wrote in #16 (comment):
Bump.
@christos wrote in #16 (comment):
@christos wrote in #16 (comment):
Any unprivileged user, including "nobody" would be able to open the device and snoop audio. Better would be to require the user to belong to some special group, akin to "video", no?
@markj wrote in #16 (comment):
I like this idea. We could create an "audio" group, which the user will have to be part of in order to open any sound(4) or virtual_oss(8) devices. I'll submit a patch.
#26
Bump.
caea20be3e8532b4a436