seccomp: add memfd_create to whitelist

This is used by memfd code.

Signed-off-by: Eduardo Otubo <eduardo.otubo@profitbricks.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
stable-2.5
Eduardo Otubo 2015-10-09 17:17:41 +02:00 committed by Michael S. Tsirkin
parent 1d9edff78f
commit f8d82b8eb8
1 changed files with 2 additions and 1 deletions

View File

@ -237,7 +237,8 @@ static const struct QemuSeccompSyscall seccomp_whitelist[] = {
{ SCMP_SYS(fadvise64), 240 },
{ SCMP_SYS(inotify_init1), 240 },
{ SCMP_SYS(inotify_add_watch), 240 },
{ SCMP_SYS(mbind), 240 }
{ SCMP_SYS(mbind), 240 },
{ SCMP_SYS(memfd_create), 240 }
};
int seccomp_start(void)