From: Samuel Thibault Subject: Re: [RFC 2/6] linux-stubdomain: Compile Linux Date: Mon, 22 Apr 2013 16:09:03 +0200 Message-ID: <20130422140903.GM5991@type.bordeaux.inria.fr> References: <1366225770-1705-1-git-send-email-anthony.perard@citrix.com> <1366225770-1705-3-git-send-email-anthony.perard@citrix.com> <51753F35.3000507@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <51753F35.3000507@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Anthony PERARD Cc: Konrad Rzeszutek Wilk , Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Anthony PERARD, le Mon 22 Apr 2013 14:46:29 +0100, a =E9crit : > >> +@@ -286,9 +283,6 @@ static long privcmd_ioctl_mmap_batch(void __user = *udata) > >> + LIST_HEAD(pagelist); > >> + struct mmap_batch_state state; > >> + > >> +- if (!xen_initial_domain()) > >> +- return -EPERM; > >> +- > >> + if (copy_from_user(&m, udata, sizeof(m))) > >> + return -EFAULT; > >> + > > = > > = > > I think you should submit both patches separately for inclusion in the > > Linux kernel. > = > Definitely. > Should we remove the check for initial_domain all together and leave > this permission to be handle by Xen? I would tend to say so. Since it's a matter of hypervisor security, Xen is supposed to check that already anyway, isn't it? Samuel