Module doctor

Module doctor 

Source
Expand description

sesame status --doctor โ€” system health and security posture diagnostics.

Each check category is a separate module returning Vec<Check>. The runner collects, filters, formats, and optionally sets the exit code.

Modulesยง

daemon ๐Ÿ”’
Daemon health checks โ€” running state, uptime, memory, restarts.
memory ๐Ÿ”’
Memory protection checks โ€” memfd_secret, core limits, swap exposure.
platform ๐Ÿ”’
Platform checks โ€” kernel version, ptrace scope, display server.
sandbox ๐Ÿ”’
Sandbox checks โ€” seccomp, no_new_privs, Landlock.

Structsยง

Check
Result of a single diagnostic check.

Enumsยง

Status
Check result severity.

Constantsยง

ALL_CATEGORIES ๐Ÿ”’
Known check categories.

Functionsยง

chrono_now ๐Ÿ”’
cmd_doctor
Run diagnostic checks and produce output.
print_json ๐Ÿ”’
print_text ๐Ÿ”’