Skip to contentSkip to conversation

seccomp branch queue

GIT PULL Applied Eduardo Otubo 3 participants 13 messages Mar 25, 2015 – Mar 26, 2015

lore
Share & tools
lore
#0 lore raw

The following changes since commit 054903a832b865eb5432d79b5c9d1e1ff31b58d7:

Update version for v2.3.0-rc1 release (2015-03-24 16:34:16 +0000)

are available in the git repository at:

git://github.com/otubo/qemu.git tags/pull-seccomp-20150325

for you to fetch changes up to 8e27fc200457e3f2473d0069263774d4ba17bd85:

seccomp: update libseccomp version and remove arch restriction (2015-03-25 11:03:27 +0100)

----------------------------------------------------------------
seccomp: update libseccomp version and remove arch restriction
----------------------------------------------------------------
Eduardo Otubo (1):
seccomp: update libseccomp version and remove arch restriction

 configure | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

[Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

Libseccomp version updated to 2.2.0 and arch restriction to x86/x86_64 is now removed. It's supposed to work on armv7l as well.

Related bug: https://bugs.launchpad.net/qemu/+bug/1363641

---
 configure | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
configure +2 -3
index 589798e..cbe6495 100755
@@ -1848,14 +1848,13 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
-        $pkg_config --atleast-version=2.1.1 libseccomp; then
+    if $pkg_config --atleast-version=2.2.0 libseccomp; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
     else
 	if test "$seccomp" = "yes"; then
-            feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
+            feature_not_found "libseccomp" "Install libseccomp devel >= 2.2.0"
 	fi
 	seccomp="no"
     fi
Signature · 1 line
1.9.1
#2 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

Quoted 6 lines · Eduardo Otubo

Libseccomp version updated to 2.2.0 and arch restriction to x86/x86_64 is now removed. It's supposed to work on armv7l as well.

Related bug: https://bugs.launchpad.net/qemu/+bug/1363641

This prevent compliation on x86_64 on Fedora 21.

(migration/next)$ make -j5 -C /scratch/tmp/next/all/
make: Entering directory '/scratch/tmp/next/all' config-host.mak is out-of-date, running configure

ERROR: User requested feature libseccomp
configure was not able to find it.
Install libseccomp devel >= 2.2.0

Makefile:30: recipe for target 'config-host.mak' failed
make: *** [config-host.mak] Error 1
make: Leaving directory '/scratch/tmp/next/all' (migration/next)$ rpm -qa | grep seccomp libseccomp-2.1.1-5.fc21.x86_64 libseccomp-devel-2.1.1-5.fc21.x86_64 libseccomp-debuginfo-2.1.1-5.fc21.x86_64 (migration/next)$

This was compiling correctly until this patch got in. And virt-test uses seccomp by default.

Fedora 21 is less than 3 months old. Do we really want to avoid compilation there?

Thanks, Juan.

Quoted 25 lines
---
 configure | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
configure +2 -3
index 589798e..cbe6495 100755
@@ -1848,14 +1848,13 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
-        $pkg_config --atleast-version=2.1.1 libseccomp; then
+    if $pkg_config --atleast-version=2.2.0 libseccomp; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
     else
 	if test "$seccomp" = "yes"; then
-            feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
+            feature_not_found "libseccomp" "Install libseccomp devel >= 2.2.0"
 	fi
 	seccomp="no"
     fi
#3 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

Quoted 7 lines · Juan Quintela
Quoted 6 lines · Eduardo Otubo

Libseccomp version updated to 2.2.0 and arch restriction to x86/x86_64 is now removed. It's supposed to work on armv7l as well.

Related bug: https://bugs.launchpad.net/qemu/+bug/1363641

Just in case anyone is interested, default virt-test output with current qemu

15:05:01 ERROR| Qemu output:
15:05:01 ERROR| qemu-system-x86_64: -sandbox on: sandboxing request but seccomp is not compiled into this build

15:05:01 ERROR| 
15:05:01 ERROR| 
15:05:01 ERROR| FAIL type_specific.io-github-autotest-qemu.migrate.default.tcp -> VMStartError: VM 'virt-tests-vm1' failed to start: Qemu is defunct.

Qemu output:
qemu-system-x86_64: -sandbox on: sandboxing request but seccomp is not compiled into this build

Notice that you can "fix" the problem running with --qemu_sandbox=off, but breaking the main test suite just before release looks wrong?

Later, Juan.

Quoted 54 lines

This prevent compliation on x86_64 on Fedora 21.

(migration/next)$ make -j5 -C /scratch/tmp/next/all/
make: Entering directory '/scratch/tmp/next/all' config-host.mak is out-of-date, running configure

ERROR: User requested feature libseccomp
configure was not able to find it.
Install libseccomp devel >= 2.2.0

Makefile:30: recipe for target 'config-host.mak' failed
make: *** [config-host.mak] Error 1
make: Leaving directory '/scratch/tmp/next/all' (migration/next)$ rpm -qa | grep seccomp libseccomp-2.1.1-5.fc21.x86_64 libseccomp-devel-2.1.1-5.fc21.x86_64 libseccomp-debuginfo-2.1.1-5.fc21.x86_64 (migration/next)$

This was compiling correctly until this patch got in. And virt-test uses seccomp by default.

Fedora 21 is less than 3 months old. Do we really want to avoid compilation there?

Thanks, Juan.

Quoted 25 lines
---
 configure | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
configure +2 -3
index 589798e..cbe6495 100755
@@ -1848,14 +1848,13 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
-        $pkg_config --atleast-version=2.1.1 libseccomp; then
+    if $pkg_config --atleast-version=2.2.0 libseccomp; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
     else
 	if test "$seccomp" = "yes"; then
-            feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
+            feature_not_found "libseccomp" "Install libseccomp devel >= 2.2.0"
 	fi
 	seccomp="no"
     fi
#4 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

Quoted 2 lines · Juan Quintela

Notice that you can "fix" the problem running with --qemu_sandbox=off, but breaking the main test suite just before release looks wrong?

The main test suite is "make check" :-)

-- PMM

#5 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

In reply to Juan Quintela
Quoted 20 lines · Juan Quintela
Quoted 7 lines · Juan Quintela
Quoted 6 lines · Eduardo Otubo

Libseccomp version updated to 2.2.0 and arch restriction to x86/x86_64 is now removed. It's supposed to work on armv7l as well.

Related bug: https://bugs.launchpad.net/qemu/+bug/1363641

Just in case anyone is interested, default virt-test output with current qemu

15:05:01 ERROR| Qemu output:
15:05:01 ERROR| qemu-system-x86_64: -sandbox on: sandboxing request but seccomp is not compiled into this build

15:05:01 ERROR| 
15:05:01 ERROR| 
15:05:01 ERROR| FAIL type_specific.io-github-autotest-qemu.migrate.default.tcp -> VMStartError: VM 'virt-tests-vm1' failed to start: Qemu is defunct.
Quoted 7 lines

Qemu output:
qemu-system-x86_64: -sandbox on: sandboxing request but seccomp is not compiled into this build

Notice that you can "fix" the problem running with --qemu_sandbox=off, but breaking the main test suite just before release looks wrong?

Is it possible to temporarely disable this feature in your testing environment while libseccomp is not updated?

Regards,

Quoted 57 lines

Later, Juan.

Quoted 54 lines

This prevent compliation on x86_64 on Fedora 21.

(migration/next)$ make -j5 -C /scratch/tmp/next/all/
make: Entering directory '/scratch/tmp/next/all' config-host.mak is out-of-date, running configure

ERROR: User requested feature libseccomp
configure was not able to find it.
Install libseccomp devel >= 2.2.0

Makefile:30: recipe for target 'config-host.mak' failed
make: *** [config-host.mak] Error 1
make: Leaving directory '/scratch/tmp/next/all' (migration/next)$ rpm -qa | grep seccomp libseccomp-2.1.1-5.fc21.x86_64 libseccomp-devel-2.1.1-5.fc21.x86_64 libseccomp-debuginfo-2.1.1-5.fc21.x86_64 (migration/next)$

This was compiling correctly until this patch got in. And virt-test uses seccomp by default.

Fedora 21 is less than 3 months old. Do we really want to avoid compilation there?

Thanks, Juan.

Quoted 25 lines
---
 configure | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
configure +2 -3
index 589798e..cbe6495 100755
@@ -1848,14 +1848,13 @@ fi
 # libseccomp check
 
 if test "$seccomp" != "no" ; then
-    if test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
-        $pkg_config --atleast-version=2.1.1 libseccomp; then
+    if $pkg_config --atleast-version=2.2.0 libseccomp; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
         QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
     else
 	if test "$seccomp" = "yes"; then
-            feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
+            feature_not_found "libseccomp" "Install libseccomp devel >= 2.2.0"
 	fi
 	seccomp="no"
     fi
Signature · 2 lines
Eduardo Otubo
ProfitBricks GmbH
#6 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

In reply to Juan Quintela
Quoted 27 lines · Juan Quintela
Quoted 6 lines · Eduardo Otubo

Libseccomp version updated to 2.2.0 and arch restriction to x86/x86_64 is now removed. It's supposed to work on armv7l as well.

Related bug: https://bugs.launchpad.net/qemu/+bug/1363641

This prevent compliation on x86_64 on Fedora 21.

(migration/next)$ make -j5 -C /scratch/tmp/next/all/
make: Entering directory '/scratch/tmp/next/all' config-host.mak is out-of-date, running configure

ERROR: User requested feature libseccomp
configure was not able to find it.
Install libseccomp devel >= 2.2.0

Makefile:30: recipe for target 'config-host.mak' failed
make: *** [config-host.mak] Error 1
make: Leaving directory '/scratch/tmp/next/all' (migration/next)$ rpm -qa | grep seccomp libseccomp-2.1.1-5.fc21.x86_64 libseccomp-devel-2.1.1-5.fc21.x86_64 libseccomp-debuginfo-2.1.1-5.fc21.x86_64 (migration/next)$

Quoted 5 lines

This was compiling correctly until this patch got in. And virt-test uses seccomp by default.

Fedora 21 is less than 3 months old. Do we really want to avoid compilation there?

Hello Juan,

I completely understand your concern. Perhaps a ping on libseccomp Fedora package maintainer would be a better way to tackle this issue instead of reverting this commit. Libseccomp 2.2.0 is released since Feb 12th and I actually gave it a little time frame for other distros to update their packages so we don't run into issues like this.

It's important to remember that this patch is also the proper fix for this bug: https://bugs.launchpad.net/qemu/+bug/1363641

Regards,

Signature · 2 lines
Eduardo Otubo
ProfitBricks GmbH
#7 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

Quoted 5 lines · Eduardo Otubo

I completely understand your concern. Perhaps a ping on libseccomp Fedora package maintainer would be a better way to tackle this issue instead of reverting this commit. Libseccomp 2.2.0 is released since Feb 12th and I actually gave it a little time frame for other distros to update their packages so we don't run into issues like this.

Well, we shouldn't really be mandating latest-and-greatest versions of our upstream dependencies unless the maintainer of those dependencies feels the earlier versions are so badly broken that it would be better to refuse to use them at all.

Quoted 2 lines

It's important to remember that this patch is also the proper fix for this bug: https://bugs.launchpad.net/qemu/+bug/1363641

If that only applies to certain architectures we can make the dependency version vary depending on which arch we're building for, I suppose.

-- PMM

#8 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

Quoted 11 lines · Peter Maydell
Quoted 5 lines · Eduardo Otubo

I completely understand your concern. Perhaps a ping on libseccomp Fedora package maintainer would be a better way to tackle this issue instead of reverting this commit. Libseccomp 2.2.0 is released since Feb 12th and I actually gave it a little time frame for other distros to update their packages so we don't run into issues like this.

Well, we shouldn't really be mandating latest-and-greatest versions of our upstream dependencies unless the maintainer of those dependencies feels the earlier versions are so badly broken that it would be better to refuse to use them at all.

+1

Quoted 6 lines
Quoted 2 lines

It's important to remember that this patch is also the proper fix for this bug: https://bugs.launchpad.net/qemu/+bug/1363641

If that only applies to certain architectures we can make the dependency version vary depending on which arch we're building for, I suppose.

I will go for this.

My concern is that virt-test will stop working until distributins gets updated. I can update it myself, or running with --qemu_sandbox=off, that is what I just did for the pull request just sent. But I feel bad that people on recent distributions are not able to use important features.

Thanks, Juan.

#9 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

In reply to Peter Maydell
Quoted 12 lines · Peter Maydell
Quoted 5 lines · Eduardo Otubo

I completely understand your concern. Perhaps a ping on libseccomp Fedora package maintainer would be a better way to tackle this issue instead of reverting this commit. Libseccomp 2.2.0 is released since Feb 12th and I actually gave it a little time frame for other distros to update their packages so we don't run into issues like this.

Well, we shouldn't really be mandating latest-and-greatest versions of our upstream dependencies unless the maintainer of those dependencies feels the earlier versions are so badly broken that it would be better to refuse to use them at all.

Quoted 7 lines
Quoted 2 lines

It's important to remember that this patch is also the proper fix for this bug: https://bugs.launchpad.net/qemu/+bug/1363641

If that only applies to certain architectures we can make the dependency version vary depending on which arch we're building for, I suppose.

This sounds more like a reasonable approach that could solve the above mentioned problem and also making virt-test to be able to keep using this feature as well -- which is also very important in order to get more important system calls for the whitelist. I'll roll out a new patch for that.

Thanks for the idea, Paul.
Sorry for the trouble on your side, Juan.

Regards,

Signature · 2 lines
Eduardo Otubo
ProfitBricks GmbH
#10 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

Quoted 21 lines · Eduardo Otubo
Quoted 12 lines · Peter Maydell
Quoted 5 lines · Eduardo Otubo

I completely understand your concern. Perhaps a ping on libseccomp Fedora package maintainer would be a better way to tackle this issue instead of reverting this commit. Libseccomp 2.2.0 is released since Feb 12th and I actually gave it a little time frame for other distros to update their packages so we don't run into issues like this.

Well, we shouldn't really be mandating latest-and-greatest versions of our upstream dependencies unless the maintainer of those dependencies feels the earlier versions are so badly broken that it would be better to refuse to use them at all.

Quoted 7 lines
Quoted 2 lines

It's important to remember that this patch is also the proper fix for this bug: https://bugs.launchpad.net/qemu/+bug/1363641

If that only applies to certain architectures we can make the dependency version vary depending on which arch we're building for, I suppose.

Quoted 8 lines

This sounds more like a reasonable approach that could solve the above mentioned problem and also making virt-test to be able to keep using this feature as well -- which is also very important in order to get more important system calls for the whitelist. I'll roll out a new patch for that.

Thanks for the idea, Paul.
Sorry for the trouble on your side, Juan.

You are welcome. I was just trying to fix the prob0lem before somebody else hit it O:-)

Later, Juan.

#11 lore raw

Re: [Qemu-devel] [PULL for v2.3 01/01] seccomp: update libseccomp version and remove arch restriction

In reply to Eduardo Otubo
Quoted 3 lines · Eduardo Otubo

Libseccomp 2.2.0 is released since Feb
12th and I actually gave it a little time frame for other distros to update their packages so we don't run into issues like this.

Incidentally, "about two months" is actually a very short time between upstream-release and mandating it for QEMU. Consider that our glib dependency is 2.12, which was released in 2006, and we're still debating whether to move forward to 2.24 (released in 2010). Distro release schedules are often on a scale of years, especially for long-term-support distros, and we want to support as wide a range of them as we reasonably can.

-- PMM

#12 lore raw
In reply to Eduardo Otubo
Quoted 12 lines · Eduardo Otubo

The following changes since commit 054903a832b865eb5432d79b5c9d1e1ff31b58d7:

Update version for v2.3.0-rc1 release (2015-03-24 16:34:16 +0000)

are available in the git repository at:

git://github.com/otubo/qemu.git tags/pull-seccomp-20150325

for you to fetch changes up to 8e27fc200457e3f2473d0069263774d4ba17bd85:

seccomp: update libseccomp version and remove arch restriction (2015-03-25 11:03:27 +0100)

Quoted 8 lines

----------------------------------------------------------------
seccomp: update libseccomp version and remove arch restriction
----------------------------------------------------------------
Eduardo Otubo (1):
seccomp: update libseccomp version and remove arch restriction

 configure | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Applied, thanks.

-- PMM