Skip to content

Commit

Permalink
xdp_validate_sound: Allow sandboxing of the validator to be disabled
Browse files Browse the repository at this point in the history
Same reasoning as for the icon validator.

Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Oct 30, 2024
1 parent bff94c7 commit 6ee7053
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xdp-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6ee7053

Please sign in to comment.