Skip to contentSkip to conversation

seccomp: adding times() to the whitelist

PATCH In review Eduardo Otubo 5 participants 15 messages Sep 4, 2013 – Sep 23, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 seccomp: adding times() to the whitelist

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

---
 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(getuid), 245 },
     { SCMP_SYS(geteuid), 245 },
     { SCMP_SYS(timer_create), 245 },
+    { SCMP_SYS(times), 245 },
     { SCMP_SYS(exit), 245 },
     { SCMP_SYS(clock_gettime), 245 },
     { SCMP_SYS(time), 245 },
Signature · 1 line
1.7.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

---
  qemu-seccomp.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +0 -0
index 37d38f8..69cee44 100644

qemu-seccomp.c static const struct QemuSeccompSyscall seccomp_whitelist[] = { · line 96

Quoted 7 lines
qemu-seccomp.c +1 -0
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
      { SCMP_SYS(getuid), 245 },
      { SCMP_SYS(geteuid), 245 },
      { SCMP_SYS(timer_create), 245 },
+    { SCMP_SYS(times), 245 },
      { SCMP_SYS(exit), 245 },
      { SCMP_SYS(clock_gettime), 245 },
      { SCMP_SYS(time), 245 },
Signature · 2 lines
Regards,
Corey Bryant
Tested-by on v1 1/1
#2 lore raw
In reply to Eduardo Otubo
Quoted 5 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Works for me.

Quoted 16 lines
---
 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[]
 = { { SCMP_SYS(getuid), 245 },
     { SCMP_SYS(geteuid), 245 },
     { SCMP_SYS(timer_create), 245 },
+    { SCMP_SYS(times), 245 },
     { SCMP_SYS(exit), 245 },
     { SCMP_SYS(clock_gettime), 245 },
     { SCMP_SYS(time), 245 },
Signature · 2 lines
paul moore
security and virtualization @ redhat
#3 lore raw

Hello,

Any chance to get this patch applied?

Thanks!

Quoted 28 lines · Paul Moore
Quoted 5 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Works for me.

Quoted 16 lines
---
  qemu-seccomp.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall seccomp_whitelist[]
 = { { SCMP_SYS(getuid), 245 },
      { SCMP_SYS(geteuid), 245 },
      { SCMP_SYS(timer_create), 245 },
+    { SCMP_SYS(times), 245 },
      { SCMP_SYS(exit), 245 },
      { SCMP_SYS(clock_gettime), 245 },
      { SCMP_SYS(time), 245 },
Signature · 2 lines
Eduardo Otubo
IBM Linux Technology Center
#4 lore raw

Il 06/09/2013 20:41, Eduardo Otubo ha scritto:

Quoted 5 lines

Hello,

Any chance to get this patch applied?

Thanks!

Paul, perhaps you can add yourself to MAINTAINERS and send a pull request?

Paolo

Quoted 31 lines · Paul Moore
Quoted 29 lines · Eduardo Otubo
Quoted 5 lines

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Works for me.

Quoted 17 lines
---
  qemu-seccomp.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +0 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall

seccomp_whitelist[]
= { { SCMP_SYS(getuid), 245 },

      { SCMP_SYS(geteuid), 245 },
      { SCMP_SYS(timer_create), 245 },
+    { SCMP_SYS(times), 245 },
      { SCMP_SYS(exit), 245 },
      { SCMP_SYS(clock_gettime), 245 },
      { SCMP_SYS(time), 245 },
#5 lore raw
Quoted 10 lines · Paolo Bonzini

Il 06/09/2013 20:41, Eduardo Otubo ha scritto:

Quoted 5 lines

Hello,

Any chance to get this patch applied?

Thanks!

Paul, perhaps you can add yourself to MAINTAINERS and send a pull request?

Paolo

Out of respect for the work that Eduardo has done, and is continuing to do, with the QEMU seccomp filtering, I think Eduardo should be the one to take on this role. If Eduardo declines I'll do ahead and submit a patch adding myself to the MAINTAINERS file.

Quoted 33 lines
Quoted 33 lines · Paul Moore
Quoted 32 lines · Eduardo Otubo
Quoted 5 lines

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Works for me.

Quoted 21 lines

---

  qemu-seccomp.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +0 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall

seccomp_whitelist[]
= { { SCMP_SYS(getuid), 245 },

      { SCMP_SYS(geteuid), 245 },
      { SCMP_SYS(timer_create), 245 },

+ { SCMP_SYS(times), 245 },

      { SCMP_SYS(exit), 245 },
      { SCMP_SYS(clock_gettime), 245 },
      { SCMP_SYS(time), 245 },
Signature · 2 lines
paul moore
security and virtualization @ redhat
#6 lore raw
Quoted 8 lines · Paul Moore
Quoted 7 lines · Paolo Bonzini

Il 06/09/2013 20:41, Eduardo Otubo ha scritto:

Quoted 5 lines

Hello,

Any chance to get this patch applied?

Thanks!

Quoted 8 lines
Quoted 3 lines

Paul, perhaps you can add yourself to MAINTAINERS and send a pull request?

Paolo

Out of respect for the work that Eduardo has done, and is continuing to do, with the QEMU seccomp filtering, I think Eduardo should be the one to take on this role. If Eduardo declines I'll do ahead and submit a patch adding myself to the MAINTAINERS file.

If this is ok for everyone, I would be really glad to take this role to myself. Paul, thanks for this vote of confidence. Paolo, should I send a patch for MAINTAINERS right away?

Regards,

Quoted 35 lines
Quoted 34 lines
Quoted 34 lines · Paul Moore
Quoted 32 lines · Eduardo Otubo
Quoted 5 lines

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Works for me.

Quoted 21 lines

---

   qemu-seccomp.c |    1 +
   1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +0 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall

seccomp_whitelist[]
= { { SCMP_SYS(getuid), 245 },

       { SCMP_SYS(geteuid), 245 },
       { SCMP_SYS(timer_create), 245 },

+ { SCMP_SYS(times), 245 },

       { SCMP_SYS(exit), 245 },
       { SCMP_SYS(clock_gettime), 245 },
       { SCMP_SYS(time), 245 },
Signature · 2 lines
Eduardo Otubo
IBM Linux Technology Center
#7 lore raw

[Qemu-devel] seccomp submaintainer? (was Re: [PATCH] seccomp: adding times() to the whitelist)

Il 09/09/2013 15:20, Eduardo Otubo ha scritto:

Quoted 8 lines
Quoted 4 lines

Out of respect for the work that Eduardo has done, and is continuing to do, with the QEMU seccomp filtering, I think Eduardo should be the one to take on this role. If Eduardo declines I'll do ahead and submit a patch adding myself to the MAINTAINERS file.

If this is ok for everyone, I would be really glad to take this role to myself. Paul, thanks for this vote of confidence. Paolo, should I send a patch for MAINTAINERS right away?

Ok, I was suggesting Paul because he was the one doing reviews.

Eduardo, that is also okay for me. However, even as a maintainer please do wait for Paul's reviews. Many areas of QEMU have maintainers that do not send their own patches without a review, so this wouldn't be a new rule. :)

Please wait for Anthony's ack. I changed the subject and CCed him to grab his attention.

Paolo

#8 lore raw

Re: [Qemu-devel] seccomp submaintainer? (was Re: [PATCH] seccomp: adding times() to the whitelist)

Quoted 10 lines · Paolo Bonzini

Il 09/09/2013 15:20, Eduardo Otubo ha scritto:

Quoted 8 lines
Quoted 4 lines

Out of respect for the work that Eduardo has done, and is continuing to do, with the QEMU seccomp filtering, I think Eduardo should be the one to take on this role. If Eduardo declines I'll do ahead and submit a patch adding myself to the MAINTAINERS file.

If this is ok for everyone, I would be really glad to take this role to myself. Paul, thanks for this vote of confidence. Paolo, should I send a patch for MAINTAINERS right away?

Quoted 6 lines

Ok, I was suggesting Paul because he was the one doing reviews.

Eduardo, that is also okay for me. However, even as a maintainer please do wait for Paul's reviews. Many areas of QEMU have maintainers that do not send their own patches without a review, so this wouldn't be a new rule. :)

Okay, with respect to maintainership, I was thinking more along the lines of the Linux Kernel where those that do the work get the job; it looks like QEMU has a slightly different twist on the idea. If it makes more sense to the QEMU devs you can always add me as a co-maintainer.

Regardless, I do plan on continuing to review/test patches and I don't expect that to change in the near future.

Quoted 4 lines

Please wait for Anthony's ack. I changed the subject and CCed him to grab his attention.

Paolo

Signature · 2 lines
paul moore
security and virtualization @ redhat
#9 lore raw

Re: [Qemu-devel] seccomp submaintainer? (was Re: [PATCH] seccomp: adding times() to the whitelist)

In reply to Paolo Bonzini
Quoted 12 lines · Paolo Bonzini

Il 09/09/2013 15:20, Eduardo Otubo ha scritto:

Quoted 8 lines
Quoted 4 lines

Out of respect for the work that Eduardo has done, and is continuing to do, with the QEMU seccomp filtering, I think Eduardo should be the one to take on this role. If Eduardo declines I'll do ahead and submit a patch adding myself to the MAINTAINERS file.

If this is ok for everyone, I would be really glad to take this role to myself. Paul, thanks for this vote of confidence. Paolo, should I send a patch for MAINTAINERS right away?

Ok, I was suggesting Paul because he was the one doing reviews.

Quoted 7 lines

Eduardo, that is also okay for me. However, even as a maintainer please do wait for Paul's reviews. Many areas of QEMU have maintainers that do not send their own patches without a review, so this wouldn't be a new rule. :)

Please wait for Anthony's ack. I changed the subject and CCed him to grab his attention.

Ack. I think it's a great idea.

Regards,

Anthony Liguori

Quoted 2 lines

Paolo

#10 lore raw
In reply to Paul Moore
Quoted 10 lines · Paul Moore
Quoted 5 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Works for me.

I fear this patch may have been lost in the maintainer discussion - can we merge this fix please?

Quoted 20 lines
Quoted 20 lines

---

 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall
 seccomp_whitelist[] = { { SCMP_SYS(getuid), 245 },
 
     { SCMP_SYS(geteuid), 245 },
     { SCMP_SYS(timer_create), 245 },
 
+    { SCMP_SYS(times), 245 },
 
     { SCMP_SYS(exit), 245 },
     { SCMP_SYS(clock_gettime), 245 },
     { SCMP_SYS(time), 245 },
Signature · 2 lines
paul moore
security and virtualization @ redhat
#11 lore raw
Quoted 6 lines · Paul Moore
Quoted 5 lines · Paul Moore
Quoted 4 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Works for me.

I fear this patch may have been lost in the maintainer discussion - can we merge this fix please?

Just another poke on this patch. Poor little bug https://bugzilla.redhat.com/show_bug.cgi?id=1004175 is waiting for a fix.

Thanks.

Quoted 22 lines
Quoted 21 lines
Quoted 21 lines

---

  qemu-seccomp.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall
 seccomp_whitelist[] = { { SCMP_SYS(getuid), 245 },
 
      { SCMP_SYS(geteuid), 245 },
      { SCMP_SYS(timer_create), 245 },
 
+    { SCMP_SYS(times), 245 },
 
      { SCMP_SYS(exit), 245 },
      { SCMP_SYS(clock_gettime), 245 },
      { SCMP_SYS(time), 245 },
Signature · 2 lines
Eduardo Otubo
IBM Linux Technology Center
#12 lore raw
Quoted 20 lines · Eduardo Otubo
Quoted 16 lines · Paul Moore
Quoted 13 lines · Paul Moore
Quoted 6 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/**show_bug.cgi?id=1004175<https://bugzilla.redhat.com/show_bug.cgi?id=1004175>

Works for me.

Quoted 8 lines
Quoted 3 lines

I fear this patch may have been lost in the maintainer discussion - can we merge this fix please?

Just another poke on this patch. Poor little bug
https://bugzilla.redhat.com/**show_bug.cgi?id=1004175<https://bugzilla.redhat.com/show_bug.cgi?id=1004175>is waiting for a fix.

Thanks.

M: Eduardo Otubo <[email protected]>
S: Supported
F: qemu-seccomp.c
F: include/sysemu/seccomp.h

You should be sending a pull request Eduardo.

Regards,

Anthony Liguori

Quoted 32 lines
Quoted 26 lines

---

Quoted 21 lines
Quoted 20 lines
  qemu-seccomp.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall
 seccomp_whitelist[] = { { SCMP_SYS(getuid), 245 },
 
      { SCMP_SYS(geteuid), 245 },
      { SCMP_SYS(timer_create), 245 },
 
+    { SCMP_SYS(times), 245 },
 
      { SCMP_SYS(exit), 245 },
      { SCMP_SYS(clock_gettime), 245 },
      { SCMP_SYS(time), 245 },

--
Eduardo Otubo
IBM Linux Technology Center

Acked-by
#13 lore raw
In reply to Paul Moore
Quoted 10 lines · Paul Moore
Quoted 5 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Works for me.

Eduardo, perhaps you should just merge this into your tree and send a pull request? This fix should also go into -stable.

Quoted 20 lines
Quoted 20 lines

---

 qemu-seccomp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall
 seccomp_whitelist[] = { { SCMP_SYS(getuid), 245 },
 
     { SCMP_SYS(geteuid), 245 },
     { SCMP_SYS(timer_create), 245 },
 
+    { SCMP_SYS(times), 245 },
 
     { SCMP_SYS(exit), 245 },
     { SCMP_SYS(clock_gettime), 245 },
     { SCMP_SYS(time), 245 },
Signature · 2 lines
paul moore
security and virtualization @ redhat
#14 lore raw
Quoted 6 lines · Paul Moore
Quoted 5 lines · Paul Moore
Quoted 4 lines · Eduardo Otubo

This was causing Qemu process to hang when using -sandbox on.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1004175

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Works for me.

Eduardo, perhaps you should just merge this into your tree and send a pull request? This fix should also go into -stable.

OH you're absolutely right, I'll just do it! Thanks for the heads up, forgot I have special powers now.

Quoted 24 lines
Quoted 20 lines
Quoted 20 lines

---

  qemu-seccomp.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
qemu-seccomp.c +1 -0
index 37d38f8..69cee44 100644
@@ -90,6 +90,7 @@ static const struct QemuSeccompSyscall
 seccomp_whitelist[] = { { SCMP_SYS(getuid), 245 },
 
      { SCMP_SYS(geteuid), 245 },
      { SCMP_SYS(timer_create), 245 },
 
+    { SCMP_SYS(times), 245 },
 
      { SCMP_SYS(exit), 245 },
      { SCMP_SYS(clock_gettime), 245 },
      { SCMP_SYS(time), 245 },
Signature · 2 lines
Eduardo Otubo
IBM Linux Technology Center