mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
seccomp: changing from whitelist to blacklist
This patch changes the default behavior of the seccomp filter from whitelist to blacklist. By default now all system calls are allowed and a small black list of definitely forbidden ones was created. Signed-off-by: Eduardo Otubo <otubo@redhat.com>
This commit is contained in:
parent
3dabde1128
commit
1bd6152ae2
3 changed files with 30 additions and 233 deletions
1
vl.c
1
vl.c
|
@ -1032,7 +1032,6 @@ static int bt_parse(const char *opt)
|
|||
|
||||
static int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp)
|
||||
{
|
||||
/* FIXME: change this to true for 1.3 */
|
||||
if (qemu_opt_get_bool(opts, "enable", false)) {
|
||||
#ifdef CONFIG_SECCOMP
|
||||
if (seccomp_start() < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue