Recheck the submitting principal and protect stored log output
This commit is contained in:
@@ -77,6 +77,10 @@ function Result({ value }: { value: unknown }) {
|
||||
const windowsUpdate = evidence.script_sha256 === windowsUpdateScriptHash;
|
||||
const reboot = windowsUpdate && Object.hasOwn(evidence, 'windows_update_reboot_required') ? evidence.windows_update_reboot_required : result.reboot_required;
|
||||
const exit = typeof result.exit_code === 'number' && Number.isInteger(result.exit_code) ? String(result.exit_code) : 'Nicht gemeldet';
|
||||
if (result.output_restricted === true) return <>
|
||||
<p><strong>Exitcode {exit}</strong></p>
|
||||
<p>Für diese Protokollausgabe fehlt dir die Leseberechtigung.</p>
|
||||
</>;
|
||||
return <>
|
||||
<p><strong>Exitcode {exit}</strong>{typeof result.error_code === 'string' && result.error_code && ' · Fehlercode '+result.error_code}</p>
|
||||
{reboot === true && <p className="warning">Ein Neustart ist erforderlich.</p>}
|
||||
|
||||
Reference in New Issue
Block a user