Skip to contentSkip to conversation

drm: introduce DRIVER_FORCE_AUTH

PATCH Koenig, Christian 2 participants 3 messages Jul 3, 2019 – Jul 17, 2019 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Am 03.07.2019 16:51 schrieb Emil Velikov <[email protected]>:

Quoted 8 lines · Christian

Am 03.07.2019 16:00 schrieb Emil Velikov <[email protected]>:

Quoted 5 lines · Christian

Well this is still a NAK.

As stated previously please just don't remove DRM_AUTH and keep the functionality as it is.

Quoted 9 lines

AFAICT nobody was in favour of your suggestion to remove DRM_AUTH from the handle to/from fd ioclts.
Thus this seems like the second best option.

Well just keep it. As I said please don't change anything here.

Dropping DRM_AUTH from the driver IOCTLs was sufficient to work around the problems at hand far as I know.

We also need the DRM_AUTH for handle to/from fd ones. Mesa drivers use those ioctls.

Yeah, but only for importing/exporting things.

And in those cases we either already gave render nodes or correctly authenticated primary nodes.

So no need to change anything here as far as I see.

I simply want to prevent that userspace gets the same functionality from the primary node they get from the render node. And that actually seems to be a good way to keep the restriction and still work around the userspace problems.

Christian.

-Emil

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 0bc184ea-bcc3-48cb-9b28-42e8fc037303-2ueSQiBKiTY7tOexoI0I+QC/[email protected]

#2 lore raw
Quoted 24 lines · Christian

Am 03.07.2019 16:51 schrieb Emil Velikov <[email protected]>:

Quoted 8 lines · Christian

Am 03.07.2019 16:00 schrieb Emil Velikov <[email protected]>:

Quoted 5 lines · Christian

Well this is still a NAK.

As stated previously please just don't remove DRM_AUTH and keep the functionality as it is.

Quoted 9 lines

AFAICT nobody was in favour of your suggestion to remove DRM_AUTH from the handle to/from fd ioclts.
Thus this seems like the second best option.

Well just keep it. As I said please don't change anything here.

Dropping DRM_AUTH from the driver IOCTLs was sufficient to work around the problems at hand far as I know.

We also need the DRM_AUTH for handle to/from fd ones. Mesa drivers use those ioctls.

Quoted 6 lines

Yeah, but only for importing/exporting things.

And in those cases we either already gave render nodes or correctly authenticated primary nodes.

So no need to change anything here as far as I see.

Not quite. When working with the primary node we have the following scenarios:
- handle to fd -> pass fd to other APIs - gbm, opencl, vdpau, etc
- handle to fd -> fd to handle - use it internally

-Emil
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CACvgo52y50bV90+7JeABvKCNCwT_E7r7CXTw98bOgyiDDzG2Pg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw

Hi Emil,

Sorry for the delay, finally coming back to this after my vacation.

Am 03.07.19 um 17:14 schrieb Emil Velikov:

Quoted 26 lines · Christian
Quoted 25 lines

Am 03.07.2019 16:51 schrieb Emil Velikov <[email protected]>:

Quoted 7 lines · Christian

Am 03.07.2019 16:00 schrieb Emil Velikov <[email protected]>:

Quoted 4 lines · Christian

Well this is still a NAK.

As stated previously please just don't remove DRM_AUTH and keep the functionality as it is.

Quoted 9 lines

AFAICT nobody was in favour of your suggestion to remove DRM_AUTH from the handle to/from fd ioclts.
Thus this seems like the second best option.

Well just keep it. As I said please don't change anything here.

Dropping DRM_AUTH from the driver IOCTLs was sufficient to work around the problems at hand far as I know.

We also need the DRM_AUTH for handle to/from fd ones. Mesa drivers use those ioctls.

Yeah, but only for importing/exporting things.

Quoted 7 lines
Quoted 4 lines

And in those cases we either already gave render nodes or correctly authenticated primary nodes.

So no need to change anything here as far as I see.

Not quite. When working with the primary node we have the following scenarios:
- handle to fd -> pass fd to other APIs - gbm, opencl, vdpau, etc
- handle to fd -> fd to handle - use it internally

Yeah, but this would once more mean that we expose the same functionality on the primary node we do on the render node.

And that is exactly what I want to prevent, because I think it is a very bad idea and will result in basically deprecating the render node.

For the problem at hand it was sufficient to drop the DRM_AUTH flag from the driver IOCTLs and I don't see a reason why we should go further than this.

Please just completely drop this whole approach,
Christian.

Quoted 2 lines

-Emil

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx