qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] seccomp: add getrusage() to the syscall whitelist for Open vSwitch
@ 2014-03-06 14:50 Paul Moore
  2014-03-06 16:10 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Moore @ 2014-03-06 14:50 UTC (permalink / raw)
  To: qemu-devel, otubo

When QEMU is used with Open vSwitch it is common to create netdev
script and downscript scripts that use the ovs-vsctl command to manage
the underlying network devices.  Unfortunately, ovs-vsctl calls the
getrusage() syscall which is not currently present in the QEMU/seccomp
whistelist.

Signed-off-by: Paul Moore <pmoore@redhat.com>
---
 qemu-seccomp.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qemu-seccomp.c b/qemu-seccomp.c
index caa926e..86210a4 100644
--- a/qemu-seccomp.c
+++ b/qemu-seccomp.c
@@ -225,7 +225,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
     { SCMP_SYS(fchmod), 240 },
     { SCMP_SYS(shmget), 240 },
     { SCMP_SYS(shmat), 240 },
-    { SCMP_SYS(shmdt), 240 }
+    { SCMP_SYS(shmdt), 240 },
+    { SCMP_SYS(getrusage), 240 }
 };
 
 int seccomp_start(void)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] seccomp: add getrusage() to the syscall whitelist for Open vSwitch
  2014-03-06 14:50 [Qemu-devel] [PATCH] seccomp: add getrusage() to the syscall whitelist for Open vSwitch Paul Moore
@ 2014-03-06 16:10 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2014-03-06 16:10 UTC (permalink / raw)
  To: Paul Moore, qemu-devel, otubo

Il 06/03/2014 15:50, Paul Moore ha scritto:
> When QEMU is used with Open vSwitch it is common to create netdev
> script and downscript scripts that use the ovs-vsctl command to manage
> the underlying network devices.  Unfortunately, ovs-vsctl calls the
> getrusage() syscall which is not currently present in the QEMU/seccomp
> whistelist.
>
> Signed-off-by: Paul Moore <pmoore@redhat.com>
> ---
>  qemu-seccomp.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/qemu-seccomp.c b/qemu-seccomp.c
> index caa926e..86210a4 100644
> --- a/qemu-seccomp.c
> +++ b/qemu-seccomp.c
> @@ -225,7 +225,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
>      { SCMP_SYS(fchmod), 240 },
>      { SCMP_SYS(shmget), 240 },
>      { SCMP_SYS(shmat), 240 },
> -    { SCMP_SYS(shmdt), 240 }
> +    { SCMP_SYS(shmdt), 240 },
> +    { SCMP_SYS(getrusage), 240 }
>  };
>
>  int seccomp_start(void)
>
>
>

NACK, when QEMU is used in sandbox mode you should use file descriptor 
passing instead.

Paolo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-06 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 14:50 [Qemu-devel] [PATCH] seccomp: add getrusage() to the syscall whitelist for Open vSwitch Paul Moore
2014-03-06 16:10 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).