Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / checkSystemd

Function: checkSystemd()

ts
function checkSystemd(opts): Promise<CheckResult[]>;

Defined in: packages/security/src/hardening/doctor.ts:195

Linux-only systemd hardening check. Returns a 'skip' row on non-Linux hosts. The body parses the structured output of systemd-analyze security <unit>; the parser is intentionally thin so deployments without systemd report a clean skip.

Parameters

ParameterType
opts{ run?: (command) => Promise&lt;string&gt;; unit?: string; }
opts.run?(command) => Promise&lt;string&gt;
opts.unit?string

Returns

Promise&lt;CheckResult[]&gt;

Stable