From 6ee70532ac99a5ced473baffee1de352a3dba081 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 30 Oct 2024 18:34:10 +0000 Subject: [PATCH] xdp_validate_sound: Allow sandboxing of the validator to be disabled Same reasoning as for the icon validator. Signed-off-by: Simon McVittie --- src/xdp-utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xdp-utils.c b/src/xdp-utils.c index 6172682b8..c7f350341 100644 --- a/src/xdp-utils.c +++ b/src/xdp-utils.c @@ -666,7 +666,10 @@ xdp_validate_sound (XdpSealedFd *sound) i = 0; args[i++] = sound_validator; - args[i++] = "--sandbox"; + + if (g_getenv ("XDP_VALIDATE_SOUND_INSECURE") == NULL) + args[i++] = "--sandbox"; + args[i++] = "--fd"; args[i++] = G_STRINGIFY (VALIDATOR_INPUT_FD); g_assert (i < G_N_ELEMENTS (args));