HI Mathias,

On 30 August 2018 at 15:11, Mathias Fröhlich <mathias.froehl...@gmx.net> wrote:

>> >
>> > It's just the file permissions:
>> >
>> > $ ls -l /dev/dri/{card*,render*}
>> > crw-rw----+ 1 root video  226,   0 Aug 30 08:28 /dev/dri/card0
>> > crw-rw-rw-  1 root render 226, 128 Aug 30 08:28 /dev/dri/renderD128
>> >
>> > which is pretty much what I expect from the basic idea of render nodes.
>> > As long as you are the one logged into the console you can access card0
>> > via an dynamically added acl. But if you are not logged into the console,
>> > which is at least one of the major driving use cases of the device
>> > enumeration extension, the current implementation fails with opening
>> > card0.
>>
>> IIRC when someone gets logged in systemd/logind/others sets up the ACL
>> -  both ownership and permissions.
>> So an open(/dev/dri/card0) will be fine - be that from tty or the DE
>> terminal emulator.
>>
>> Can you share a brief how-to reproduce?
>
> ssh different-machine.somewhere
>
> Then you will see that you are not added to the card0 acl as you are not
> logged to any console.
>
Ouch, I should have noticed the "rw" for "other" of your render node.
Looking at a Arch, Debian, Fedora and Ubuntu box -  they all use 0660
for both card and render nodes.
Which would explain why your described use case was not working, here ;-)

Out of curiosity: you change that locally or it's a distro choice -
which distro is that?

That said, v2 opens the render node directly, so it should work on your end.
Just double-checking the crash is gone and I'll send them out.

Thanks
Emil
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to