[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190122202535.GK7579@sirena.org.uk>
Date: Tue, 22 Jan 2019 20:25:35 +0000
From: Mark Brown <broonie@...nel.org>
To: Jaroslav Kysela <perex@...ex.cz>
Cc: Takashi Iwai <tiwai@...e.de>, alsa-devel@...a-project.org,
arnd@...db.de, keescook@...omium.org, bgoswami@...eaurora.org,
sr@...x.de, gustavo@...eddedor.com, philburk@...gle.com,
willy@...radead.org, mchehab+samsung@...nel.org, sboyd@...nel.org,
vkoul@...nel.org, Baolin Wang <baolin.wang@...aro.org>,
daniel.thompson@...aro.org, leo.yan@...aro.org,
mathieu.poirier@...aro.org, srinivas.kandagatla@...aro.org,
anna-maria@...utronix.de, corbet@....net, jmiller@...erware.com,
ckeepax@...nsource.wolfsonmicro.com, joe@...ches.com,
o-takashi@...amocchi.jp, colyli@...e.de,
linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] ALSA: core: Add DMA share buffer support
On Mon, Jan 21, 2019 at 03:15:43PM +0100, Jaroslav Kysela wrote:
> Dne 21.1.2019 v 13:40 Mark Brown napsal(a):
> > It was the bit about adding more extended permission control that I was
> > worried about there, not the initial O_APPEND bit. Indeed the O_APPEND
> > bit sounds like it might also work from the base buffer sharing point of
> > view, I have to confess I'd not heard of that feature before (it didn't
> > come up in the discussion when Eric raised this in Prague).
> With permissions, I meant to make possible to restrict the file
> descriptor operations (ioctls) for the depending task (like access to
> the DMA buffer, synchronize it for the non-coherent platforms and maybe
> read/write the actual position, delay etc.). It should be relatively
> easy to implement using the snd_pcm_file structure.
Right, that's what I understood you to mean. If you want to have a
policy saying "it's OK to export a PCM file descriptor if it's only got
permissions X and Y" the security module is going to need to know about
the mechanism for setting those permissions. With dma_buf that's all a
bit easier as there's less new stuff, though I've no real idea how much
of a big deal that actually is.
> Even with the full operation mode, it's difficult imagine what the
> depending task can break with the sound interface except probably annoy
> users with some cracks for the playback or start/stop the streaming rapidly.
In some embedded systems the ability to play back notifications clearly
can be very important to system functionality. Obviously at times the
main purpose of the system is to play or record audio.
I don't have a *super* strong opinion here but I'm not really a security
person.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists