Re: [PATCH 3/4] drm: Check mode object lease status in all master ioctl paths

From: Keith Packard
Date: Mon Apr 10 2017 - 00:41:52 EST


Daniel Vetter <daniel@xxxxxxxx> writes:

> I think it'd be good if we could consolidate all the lease checking into
> drm_mode_object_find (respectively __drm_mode_object_find). We'd need to
> wire up the fpriv to be able to do that, but we could upstream that patch
> right away before anything else. That should take care of most of the
> checks in this patch here.

Hrm. Without some major changes, the effect of this will be to have the
lessee see only the objects which it holds a lease on. I think that's OK
as the lessor will be doing object filtering for its clients, however
it's not what Dave and I discussed, so I just want to make him aware
that the kernel is going to be simpler than originally planned. We had
originally discussed having the lessee see the un-leased objects, but to
have them reported with different status.

--
-keith

Attachment: signature.asc
Description: PGP signature