From: "Jan Beulich" Subject: Re: [Xen-devel] [PATCH 1/2] xen: Implement ioctl to restrict privcmd to a specific domain Date: Fri, 01 Aug 2014 09:27:25 +0100 Message-ID: <53DB6B8D02000078000284D3@mail.emea.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Frediano Ziglio Cc: David Vrabel , xen-devel , Boris Ostrovsky , Konrad Rzeszutek Wilk , linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel List-Id: linux-api@vger.kernel.org >>> On 31.07.14 at 15:16, wrote: > Add a RESTRICT ioctl to /dev/xen/privcmd, which allows privileged commands > file descriptor to be restricted to only working with a particular domain. The "with" here has been quite confusing, and I realized that you mean the subject domain rather than the actor one only after having gone through quite some parts of the patch. For a patch this size, a little more of a description (and the original motivation) would have helped. Wrt motivation: Why does this need enforcing in the kernel at all? Doesn't XSM_DM_PRIV mode deal specifically with what you're trying to do here? Or else I guess I really need some better explanation of what this is about. Jan