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
| Parameter | Type |
|---|---|
opts | { run?: (command) => Promise<string>; unit?: string; } |
opts.run? | (command) => Promise<string> |
opts.unit? | string |
Returns
Promise<CheckResult[]>