From: Jamie Lokier Subject: Re: [Xen-devel] Re: [PATCH 12/13] set vnc password from xenstore. Date: Sun, 24 Aug 2008 13:48:20 +0100 Message-ID: <20080824124820.GD24946@shareable.org> References: <1219336054-15919-1-git-send-email-kraxel@redhat.com> <1219336054-15919-13-git-send-email-kraxel@redhat.com> <48ADCCA2.8050201@codemonkey.ws> <20080821201955.GG1531@redhat.com> <48ADCE91.2070602@codemonkey.ws> <48B12280.9010202@qumranet.com> <20080824095903.GA24946@shareable.org> <48B132FC.2030304@qumranet.com> Reply-To: qemu-devel@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <48B132FC.2030304@qumranet.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org Avi Kivity wrote: > Jamie Lokier wrote: > >Avi Kivity wrote: > > > >>Anthony Liguori wrote: > >> > >>>> -vnc localhost:3,passwdfd=6 > >>>> > >>>In general, I strongly dislike passing file descriptors like this. > >>> > >>I find this very useful, and actually think we should encourage it, and > >>also allow passing file descriptors over the monitor (using > >>SCM_RIGHTS). This can help de-privilege qemu. In fact, you can run a > >>guest where qemu doesn't even have permissions to open the backing file. > >> > > > >You can already do this: > > > > qemu -hdc /proc/self/fd/3 3<>MS-DOS-6.22.img > > Not over the monitor. Oh, you're thinking of sending SCM_RIGHTS over the monitor.. Nice :-) -- Jamie