From: Paul Moore <pmoore@redhat.com>
To: Eduardo Otubo <otubo@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] seccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist
Date: Wed, 05 Mar 2014 12:35:10 -0500 [thread overview]
Message-ID: <17650523.zQ4lDEmyid@sifl> (raw)
In-Reply-To: <53173A86.8040206@linux.vnet.ibm.com>
On Wednesday, March 05, 2014 11:53:58 AM Eduardo Otubo wrote:
> On 03/03/2014 05:41 PM, Paul Moore wrote:
> > On Wednesday, February 26, 2014 10:25:01 AM Paul Moore wrote:
> >> Additional testing reveals that PulseAudio requires shmctl() and the
> >> mlock()/munlock() syscalls on some systems/configurations. As before,
> >> on systems that do require these syscalls, the problem can be seen with
> >>
> >> the following command line:
> >> # qemu -monitor stdio -sandbox on \
> >>
> >> -device intel-hda -device hda-duplex
> >>
> >> Signed-off-by: Paul Moore <pmoore@redhat.com>
> >> ---
> >>
> >> qemu-seccomp.c | 5 ++++-
> >> 1 file changed, 4 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/qemu-seccomp.c b/qemu-seccomp.c
> >> index caa926e..3db1e9b 100644
> >> --- a/qemu-seccomp.c
> >> +++ b/qemu-seccomp.c
> >> @@ -225,7 +225,10 @@ 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(shmctl), 240 },
> >> + { SCMP_SYS(mlock), 240 },
> >> + { SCMP_SYS(munlock), 240 }
> >>
> >> };
> >>
> >> int seccomp_start(void)
> >
> > Bump to bring this back the forefront of everyone's minds. Can we get
> > this merged?
>
> Sorry for the late review, I've been hit by a terrible tendinitis and
> was unable to use a computer for the last week. :(
Hopefully nothing that isn't too unbearable and unmanageable. Tendinitis can
be a real pain.
> I ACK this patch and I'll create a pull request by friday EOD if nothing
> else comes up.
Great, thank you. I've run across one more issue related to Open vSwitch and
getrusage(); I'll try to get that fixed/tested before Friday, but don't let
that hold up this fix.
On a somewhat related note, have you done any work on the dynamic, per-feature
whitelist? I'm thinking of doing some work to put together a basic framework
for this, but I didn't want to waste time on a duplicated effort ...
-Paul
--
paul moore
security and virtualization @ redhat
prev parent reply other threads:[~2014-03-05 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 15:25 [Qemu-devel] [PATCH] seccomp: add shmctl(), mlock(), and munlock() to the syscall whitelist Paul Moore
2014-03-03 20:41 ` Paul Moore
2014-03-05 14:53 ` Eduardo Otubo
2014-03-05 17:35 ` Paul Moore [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17650523.zQ4lDEmyid@sifl \
--to=pmoore@redhat.com \
--cc=otubo@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).