From: Avi Kivity Subject: Re: Re: [Qemu-devel] [PATCH 12/13] set vnc password from xenstore. Date: Sun, 24 Aug 2008 13:07:56 +0300 Message-ID: <48B132FC.2030304@qumranet.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080824095903.GA24946@shareable.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org 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. -- error compiling committee.c: too many arguments to function