Skip to contentSkip to conversation

Rendering when dropped master

DISCUSSION Thomas Hellstrom 2 participants 4 messages Dec 20, 2013

lore
Share & tools
lore
#0 lore raw

So this is a potential issue that needs to be brought up sooner or later:

Let's say a client is authenticated by the current master. Then the master drops, and we have a new master (fast user switching for example).

What's the status of the clients authenticated by old masters? Should they be allowed to render and use memory resources or shouldn't they?

A typical example where this could pose a problem is where user 1 opens a drm connection, authenticates itself and then drops master. Then user 2 starts an X server and exposes all DRI contents to user 1?

/Thomas

#1 lore raw
Quoted 6 lines · Thomas Hellstrom

So this is a potential issue that needs to be brought up sooner or later:

Let's say a client is authenticated by the current master. Then the master drops, and we have a new master (fast user switching for example).

Quoted 8 lines

What's the status of the clients authenticated by old masters? Should they be allowed to render and use memory resources or shouldn't they?

A typical example where this could pose a problem is where user 1 opens a drm connection, authenticates itself and then drops master. Then user 2 starts an X server and exposes all DRI contents to user 1?

/Thomas

I wouldn't worry about that since all clients should use render nodes instead. If you worry about this, help making the switch to them happen.

Martin/mupuf

#2 lore raw
Quoted 12 lines · Martin Peres
Quoted 11 lines · Thomas Hellstrom

So this is a potential issue that needs to be brought up sooner or later:

Let's say a client is authenticated by the current master. Then the master drops, and we have a new master (fast user switching for example).

What's the status of the clients authenticated by old masters? Should they be allowed to render and use memory resources or shouldn't they?

Quoted 9 lines
Quoted 5 lines

A typical example where this could pose a problem is where user 1 opens a drm connection, authenticates itself and then drops master. Then user 2 starts an X server and exposes all DRI contents to user 1?

/Thomas

I wouldn't worry about that since all clients should use render nodes instead.
If you worry about this, help making the switch to them happen.

OK, so let's say user 1 opens a connection through a render node and starts rendering using shared buffers.
Then we do a fast user switch, the render node ACL is updated and user 2 logs in.
What's stopping user 2 from accessing user 1's DRI content?

I haven't looked closely at what's actually allowed through render nodes; perhaps buffer sharing using global names isn't?

/Thomas

Quoted 5 lines

Martin/mupuf
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 22 lines · Thomas Hellstrom
Quoted 12 lines · Martin Peres
Quoted 11 lines · Thomas Hellstrom

So this is a potential issue that needs to be brought up sooner or later:

Let's say a client is authenticated by the current master. Then the master drops, and we have a new master (fast user switching for example).

What's the status of the clients authenticated by old masters? Should they be allowed to render and use memory resources or shouldn't they?

Quoted 9 lines
Quoted 5 lines

A typical example where this could pose a problem is where user 1 opens a drm connection, authenticates itself and then drops master. Then user 2 starts an X server and exposes all DRI contents to user 1?

/Thomas

I wouldn't worry about that since all clients should use render nodes instead.
If you worry about this, help making the switch to them happen.

Quoted 8 lines

OK, so let's say user 1 opens a connection through a render node and starts rendering using shared buffers.
Then we do a fast user switch, the render node ACL is updated and user 2 logs in.
What's stopping user 2 from accessing user 1's DRI content?

I haven't looked closely at what's actually allowed through render nodes; perhaps buffer sharing using global names isn't?

That's right. GEM buffer sharing is disabled in render nodes. Only DMA-Buf is allowed.

GEM buffer sharing could hardly be less secure, that's why it was decided to drop it entirely in favour of dma-buf.

Martin