[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2417c969-357f-d5d9-153a-2180d09b0dc6@redhat.com>
Date: Tue, 3 Oct 2017 14:42:32 -0700
From: Laura Abbott <labbott@...hat.com>
To: Mark Brown <broonie@...nel.org>
Cc: Benjamin Gaignard <benjamin.gaignard@...aro.org>,
sumit.semwal@...aro.org, gregkh@...uxfoundation.org,
arve@...roid.com, riandrews@...roid.com, dan.carpenter@...cle.com,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linux-api@...r.kernel.org
Subject: Re: [PATCH v5 2/2] staging: ion: create one device entry per heap
On 10/03/2017 09:48 AM, Mark Brown wrote:
> On Mon, Oct 02, 2017 at 11:07:48AM -0700, Laura Abbott wrote:
>
>> Thinking about this a bit more, I'm not 100% sure if this
>> will allow the security rules we want. Heap ids are assigned
>> dynamically and therefore so will the /dev/ionX designation.
>> From my understanding, security rules like selinux need to
>> be fully specified at boot time so I'm not sure how you would
>> be able to write rules to differentiate between /dev/ionX and
>> /dev/ionY without knowing the values at boottime.
>
> Isn't this something that should be managable via udev rules that ensure
> stable names in the same way as for things like disks or ethernet
> controllers (even if it just ends up doing something like /dev/ion-gpu
> or whatever)? If we're not giving it enough information to assign stable
> names where needed we probably need to fix that anyway.
>
Android doesn't use a standard udev so we'd need something that
would work there. My understanding was that android needs everything
specified at boot unless that's changed.
There would be enough information to assign stable names
(e.g. /dev/ion-system) if we used the query ioctl to find out
what's actually available. Is just the ioctl useful though?
Thanks,
Laura
Powered by blists - more mailing lists