From c943442c947aef412d5c32fa45e940a63b5bab32 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 15 Feb 2024 13:13:39 +0000 Subject: [PATCH] modules/programs: sane-sandboxed: add --sane-sandbox-method none for benchmarking --- modules/programs/sane-sandboxed | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/programs/sane-sandboxed b/modules/programs/sane-sandboxed index 65e46e11..bd0c8388 100644 --- a/modules/programs/sane-sandboxed +++ b/modules/programs/sane-sandboxed @@ -436,6 +436,28 @@ capshonlyExec() { } +## NONE BACKEND +# this backend exists only to allow benchmarking +noneSetup() { + : +} +noneIngestPath() { + : +} +noneIngestNet() { + : +} +noneIngestProfile() { + : +} +noneIngestCapability() { + : +} +noneExec() { + exec "${cliArgs[@]}" +} + + ## ARGUMENT POST-PROCESSING ### autodetect: if one of the CLI args looks like a path, that could be an input or output file