virtual_oss(8): Create loopback devices with GID_AUDIO #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "christos/group"
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?
Make sure the user is part of the audio group to avoid unintended
snooping of loopback audio by unprivileged users.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
But how are you doing that? The mode is still 0666.
And we should avoid hard-coding GIDs in userspace. Use getgrnam("audio") to find the GID.
f6f8b3438a7aa92a43fb@markj wrote in #26 (comment):
Addressed.
7aa92a43fb193f38bee6Updated the man page to document this change.
Bump.
193f38bee60dfa879abe0dfa879abeb5cd30dd69b5cd30dd6972228b0cd3@ -1868,0 +1875,4 @@* users.*/if ((gr = getgrnam("audio")) == NULL)return ("getgrnam() failed");the most likely cause is that the audio group does not exist; we probably want to check errno and have the string be "audio group not found" or such for that case.
72228b0cd3c9c10a3c8cc9c10a3c8c5f904cb1b0