ALSA: pcm: implement the anonymous dup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ALSA: pcm: implement the anonymous dup (inode file descriptor)include/ include/ sound/ +3 more | +101 | 2 replies | |
| 2/3 | ALSA: pcm: remove the file member from struct pcminclude/ sound/ sound/ | +1 | 1 reply | |
| 3/3 | ALSA: pcm: implement the ioctl/mmap filter for the anonymous dupinclude/ include/ sound/ | +94 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] ALSA: pcm: implement the anonymous dup
This patchset contains the anonymous dup implementation with permissions checking for the ALSA's PCM interface in kernel to enable the restricted DMA sound buffer sharing for the restricted tasks.
The code was tested through qemu and it seems to be pretty stable.
The initial tinyalsa implementation can be found here:
https://github.com/perexg/tinyalsa/commits/anondup
The filtering might be refined. It depends on the real requirements. Perhaps, we may create more ioctl groups. Any comments are more than welcome.
Jaroslav Kysela (3):
ALSA: pcm: implement the anonymous dup (inode file descriptor)
ALSA: pcm: remove the file member from struct pcm
ALSA: pcm: implement the ioctl/mmap filter for the anonymous dup
include/sound/pcm.h | 10 +-- include/uapi/sound/asound.h | 12 +++- sound/core/oss/pcm_oss.c | 3 +- sound/core/pcm.c | 48 +++++++++----- sound/core/pcm_compat.c | 1 + sound/core/pcm_native.c | 154 +++++++++++++++++++++++++++++++++++++++++--- 6 files changed, 195 insertions(+), 33 deletions(-)
Signature · 1 line
2.13.6