[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] detecting seccomp sandbox capability via QMP
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] detecting seccomp sandbox capability via QMP |
Date: |
Tue, 4 Dec 2012 15:23:56 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Dec 04, 2012 at 03:42:32PM +0100, Ján Tomko wrote:
> On 12/04/12 12:46, Luiz Capitulino wrote:
> > On Mon, 03 Dec 2012 16:55:35 +0100
> > Ján Tomko <address@hidden> wrote:
> >
> >> Hello,
> >>
> >> is there a way to check if QEMU was compiled with --enable-seccomp via QMP?
> >
> > Not that I'm aware of. Could you describe your use-case?
>
> It's for libvirt. The detection is broken since the switch from parsing
> -help output to QMP and I wanted to fix it.
>
> Assuming it's supported if we do capabilities detection via QMP (since
> libvirt 1.0.0 and QEMU 1.2) would work except for this case:
> If seccomp sandbox was requested in /etc/libvirt/qemu.conf, but it was
> compiled out from qemu, libvirt would try to run QEMU with -sandbox on
> instead of printing an error earlier.
In the absence of any way to detect it via QMP, libvirt should fallback
to hardcoding it based on the version number. This presumes that QEMU was
built with it enabled in configure, but we've no other option for current
released 1.2/1.3 versions.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
- [Qemu-devel] detecting seccomp sandbox capability via QMP, Ján Tomko, 2012/12/03
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Luiz Capitulino, 2012/12/04
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Ján Tomko, 2012/12/04
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Luiz Capitulino, 2012/12/04
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP,
Daniel P. Berrange <=
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Anthony Liguori, 2012/12/04
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Daniel P. Berrange, 2012/12/04
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Anthony Liguori, 2012/12/04
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Daniel P. Berrange, 2012/12/06
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Anthony Liguori, 2012/12/06
- Re: [Qemu-devel] detecting seccomp sandbox capability via QMP, Daniel P. Berrange, 2012/12/06