diff --git a/system/qemu-seccomp.c b/system/qemu-seccomp.c index cd2c1b0b74..a71cf66028 100644 --- a/system/qemu-seccomp.c +++ b/system/qemu-seccomp.c @@ -76,13 +76,6 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] = { { SCMP_SYS(clone), QEMU_SECCOMP_SET_SPAWN, \ ARRAY_SIZE(clone_arg ## flag), clone_arg ## flag, SCMP_ACT_ERRNO(EPERM) } -/* If no CLONE_* flags are set, except CSIGNAL, deny */ -const struct scmp_arg_cmp clone_arg_none[] = { - { .arg = CLONE_FLAGS_ARG, - .op = SCMP_CMP_MASKED_EQ, - .datum_a = ~(CSIGNAL), .datum_b = 0 } -}; - /* * pthread_create should always set all of these. */ @@ -219,8 +212,6 @@ static const struct QemuSeccompSyscall denylist[] = { 0, NULL, SCMP_ACT_ERRNO(EPERM) }, { SCMP_SYS(execve), QEMU_SECCOMP_SET_SPAWN, 0, NULL, SCMP_ACT_ERRNO(EPERM) }, - { SCMP_SYS(clone), QEMU_SECCOMP_SET_SPAWN, - ARRAY_SIZE(clone_arg_none), clone_arg_none, SCMP_ACT_ERRNO(EPERM) }, RULE_CLONE_FLAG(CLONE_VM), RULE_CLONE_FLAG(CLONE_FS), RULE_CLONE_FLAG(CLONE_FILES),