Skip to contentSkip to conversation

seccomp: exit if seccomp_init() fails

GIT PULL Eduardo Otubo 3 participants 4 messages Dec 20, 2013 – Jan 9, 2014

lore
Share & tools
lore
#0 lore raw

The following changes since commit 2a13f991123fa16841e6d94b02a9cc2c76d91725:

seccomp: exit if seccomp_init() fails (2013-12-20 16:38:29 -0200)

are available in the git repository at:
git://github.com/otubo/qemu.git seccomp

Corey Bryant (1):
seccomp: exit if seccomp_init() fails

 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
#1 lore raw

From: Corey Bryant <[email protected]>

This fixes a bug where we weren't exiting if seccomp_init() failed.

---
 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index cf07869..b7c1253 100644
@@ -231,6 +231,7 @@ int seccomp_start(void)
 
     ctx = seccomp_init(SCMP_ACT_KILL);
     if (ctx == NULL) {
+        rc = -1;
         goto seccomp_return;
     }
 
Signature · 1 line
1.7.1
#2 lore raw
In reply to Eduardo Otubo
Quoted 6 lines · Eduardo Otubo

The following changes since commit 2a13f991123fa16841e6d94b02a9cc2c76d91725:

seccomp: exit if seccomp_init() fails (2013-12-20 16:38:29 -0200)

are available in the git repository at:
git://github.com/otubo/qemu.git seccomp

It's been almost three weeks. What's holding this up?

#3 lore raw
Quoted 2 lines · Markus Armbruster
Quoted 1 line · Eduardo Otubo

The following changes since commit

2a13f991123fa16841e6d94b02a9cc2c76d91725:

Quoted 6 lines
Quoted 4 lines

seccomp: exit if seccomp_init() fails (2013-12-20 16:38:29 -0200)

are available in the git repository at:
git://github.com/otubo/qemu.git seccomp

It's been almost three weeks. What's holding this up?

Agreed, this is silly, especially for such a small and obvious fix.

Signature · 2 lines
paul moore
security and virtualization @ redhat