[Intel-gfx] xf86-video-intel hits an assert when using dri and xorg is not suid root

Chris Wilson chris at chris-wilson.co.uk
Fri Jun 13 14:36:16 CEST 2014


On Fri, Jun 13, 2014 at 02:08:06PM +0200, Hans de Goede wrote:
> Hi,
> 
> When trying to run the latest xorg + intel drv, with dri3, with Xorg not
> running as root, the followin assert in src/intel_device.c: authorise() :
> 
> assert(is_i915_gem(fd));
> 
> Triggers, this is caused by the DRM_IOCTL_I915_GETPARAM ioctl in
> is_i915_gem() failing with -EACCESS in this case.
> 
> I thought that the use of rendernodes should work as normal user ?

Hmm, I have

DRM_IOCTL_DEF_DRV(I915_GETPARAM, i915_getparam, DRM_AUTH|DRM_RENDER_ALLOW),

What path did find_render_node() choose? Was it right?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list