From: Alan Cox Subject: Re: [PATCH] drm/gem: Add new flink_to ioctl Date: Thu, 8 Jul 2010 18:21:43 +0100 Message-ID: <20100708182143.1e1ecb16@lxorguk.ukuu.org.uk> References: <1278602605-21728-1-git-send-email-krh@bitplanet.net> <89kc63$hd3ebf@fmsmga002.fm.intel.com> <20100708094926.16bbc3e9@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from www.etchedpixels.co.uk (earthlight.etchedpixels.co.uk [81.2.110.250]) by gabe.freedesktop.org (Postfix) with ESMTP id 12C939E78C for ; Thu, 8 Jul 2010 11:08:44 -0700 (PDT) In-Reply-To: <20100708094926.16bbc3e9@virtuousgeek.org> 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: Jesse Barnes Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org > > My argument was based around that the current system is designed as a > > directory of opaque objects and so the extended attributes should be > > kept opaque to the kernel as well and left open to interpretation by > > userland. What I am most unclear about is under which circumstances is > > this backchannel communication preferable to passing the extra information > > over the IPC that needs to be performed anyway in order to open a surface. > > That's the part I had trouble with as well. Passing the blob through > the kernel saves a little IPC but also seems unnecessary, and so rubs > against my kernel minimalist side... Passing the blob through the kernel does give you a basis for more complex security since you can agree a blob format with the kernel security layer and add security hooks to the interface in future.