core

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectFirmwareBoot

func CollectFirmwareBoot() *payload.FirmwareBoot

CollectFirmwareBoot detects UEFI vs BIOS hints (no root required for sysfs).

func CollectFqdn

func CollectFqdn(shortHostname string) string

CollectFqdn derives a UI FQDN: dotted /etc/hostname if present, then hostname -f, -A, and shortHostname + hostname -d (GNU) when a DNS domain suffix is available.

func CollectGrubSnapshot

func CollectGrubSnapshot() *payload.GrubSnapshot

CollectGrubSnapshot parses /etc/default/grub and optionally peeks grub.cfg (no secrets).

func CollectHighRiskProcessSurface

func CollectHighRiskProcessSurface() *payload.HighRiskProcessSurface

CollectHighRiskProcessSurface samples TCP listeners and root-owned processes with exe/cmdline hints.

func CollectHostProcess

func CollectHostProcess() *payload.HostProcess

CollectHostProcess builds top CPU/RSS merge and interpreter / heuristic signals (M1).

func CollectKernelModules

func CollectKernelModules() *payload.KernelModulesBlock

CollectKernelModules lists loaded modules from /proc/modules (capped) with denylist hits.

func CollectOSInfo

func CollectOSInfo() (payload.OSInfo, string)

CollectOSInfo sends pretty/kernel, raw /etc/os-release fields, and gopsutil host.Info. The API derives distro_id / distro_version_id / distro_name for EOL (see backend src/ingest/os_normalize). The second return is the host name from host.Info (for dashboard titles), or "" if unavailable.

func CollectSelinuxApparmor

func CollectSelinuxApparmor() *payload.SelinuxApparmorBlock

CollectSelinuxApparmor reports SELinux mode and a short AppArmor summary when available.

func CollectSysctlLiveProfile

func CollectSysctlLiveProfile() *payload.SysctlLiveBlock

CollectSysctlLiveProfile reads allowlisted /proc/sys keys (bounded).

func CollectSysctlOverlay

func CollectSysctlOverlay() *payload.SysctlOverlayBlock

CollectSysctlOverlay parses sysctl.conf and sysctl.d, compares to live values for drift.

func CollectSystemdHealth

func CollectSystemdHealth() *payload.SystemdHealth

CollectSystemdHealth reports systemd default target and running state when systemctl exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL