提交 452dfbef 编写于 作者: E Eduardo Otubo 提交者: Anthony Liguori

Adding seccomp calls to vl.c (v8)

Signed-off-by: NEduardo Otubo <otubo@linux.vnet.ibm.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
---
v1:
 - Full seccomp calls and data included in vl.c

v1 -> v2:
 - Full seccomp calls and data removed from vl.c and put into separate
   qemu-seccomp.[ch] file.
上级 2f668be7
......@@ -63,6 +63,11 @@
#include <linux/ppdev.h>
#include <linux/parport.h>
#endif
#ifdef CONFIG_SECCOMP
#include "qemu-seccomp.h"
#endif
#ifdef __sun__
#include <sys/stat.h>
#include <sys/ethernet.h>
......@@ -2344,6 +2349,14 @@ int main(int argc, char **argv, char **envp)
const char *trace_events = NULL;
const char *trace_file = NULL;
#ifdef CONFIG_SECCOMP
if (seccomp_start() < 0) {
fprintf(stderr,
"seccomp: failed to install syscall filter in the kernel\n");
exit(1);
}
#endif
atexit(qemu_run_exit_notifiers);
error_set_progname(argv[0]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册