From: Laurent Pinchart Subject: Re: [PATCH 0/3] [RFC] DRM Render Nodes Date: Thu, 11 Oct 2012 13:10:45 +0200 Message-ID: <6110809.jWF3r5L6Ph@avalon> References: <1348850159-3956-1-git-send-email-krh@bitplanet.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [95.142.166.194]) by gabe.freedesktop.org (Postfix) with ESMTP id 947869E82A for ; Thu, 11 Oct 2012 04:10:01 -0700 (PDT) In-Reply-To: <1348850159-3956-1-git-send-email-krh@bitplanet.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org Cc: daniel.vetter@ffwll.ch, martin.peres@labri.fr List-Id: dri-devel@lists.freedesktop.org Hi Kristian, Could you please update Documentation/DocBook/drm.tmpl with render nodes = documentation ? On Friday 28 September 2012 12:35:56 Kristian H=F8gsberg wrote: > Here's the patch to implement render nodes as discussed in the "DRM2" > talk at XDC: > = > http://wiki.x.org/wiki/Events/XDC2012/Proceedings#DRM2 > = > The core problem is that DRM security is compromised in the face of > VT switching and multiple DRM masters. Any local user can access all > shared buffers from within any X server on the system, even when that > user doesn't have access to any of those X servers. > = > The fix for this is to use dmabuf/prime and fd passing for buffer sharing. > That infrastructure is already in place and we need to start using that in > user space. Once we're passing buffers between display servers and clien= ts > in a point-to-point fashion, we no longer need to authenticate clients. = We > just need to make sure they can only render and import/export buffers to > fds. That's what this patch does, by creating a new type of drm device > node. Accessing this node doesn't require authentication (and as such > can be used without a master, ie headless), but will only expose the safe, > modern (DRI2ish) rendering ioctls. > = > Once userspace is sharing buffers through fd passing, the legacy card0 no= de > can be locked down by unix permissions, for example in a drm-master group, > so that only setgid binaries (X, weston, other KMS apps) can access it. > = > Kristian > = > = > See also: > = > http://wiki.x.org/wiki/Events/XDC2012/Proceedings#Graphics_stack_security > = > https://lwn.net/Articles/517375/ -- = Regards, Laurent Pinchart