filesystem

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ModuleName = "file_system_and_storage"

ModuleName identifies this component module.

Variables

This section is empty.

Functions

func CollectCryptStorageHint

func CollectCryptStorageHint(ctx context.Context) *payload.CryptStorageHint

CollectCryptStorageHint summarizes crypttab and lsblk crypt volumes (no key material).

func CollectFileIntegrityTooling

func CollectFileIntegrityTooling(ctx context.Context) *payload.FileIntegrityTooling

CollectFileIntegrityTooling detects AIDE/Tripwire-style installation hints (no DB upload).

func CollectHostDisk

func CollectHostDisk(ctx context.Context) *payload.HostDisk

CollectHostDisk reports mount usage via gopsutil disk.Partitions(false) + disk.Usage.

func CollectHostNetwork

func CollectHostNetwork(ctx context.Context) *payload.HostNetwork

CollectHostNetwork summarizes interfaces and public-IP hints via gopsutil net.Interfaces.

func CollectHostPath

func CollectHostPath(ctx context.Context) *payload.HostPath

CollectHostPath enumerates PATH directories with exists and world-writable flags (skips dirs under /home).

func CollectHostSuid

func CollectHostSuid(ctx context.Context) *payload.HostSuid

CollectHostSuid lists setuid binaries under common roots (bounded). Implemented with filepath.WalkDir (no external find): gopsutil does not expose filesystem setuid enumeration.

func CollectMountOptionsAudit

func CollectMountOptionsAudit(ctx context.Context) *payload.MountOptionsAudit

CollectMountOptionsAudit parses /etc/fstab and live mounts (gopsutil disk.Partitions) for hardening flags.

func CollectNfsExportsFingerprint

func CollectNfsExportsFingerprint(ctx context.Context) *payload.NfsExportsFingerprint

CollectNfsExportsFingerprint parses /etc/exports with path hashes (no raw paths).

func CollectPathPermissionsAudit

func CollectPathPermissionsAudit(ctx context.Context) *payload.PathPermissionsAudit

CollectPathPermissionsAudit samples world-writable dirs, /tmp sticky, SGID files, and unowned paths (bounded).

func CollectUsbStoragePosture

func CollectUsbStoragePosture(ctx context.Context) *payload.UsbStoragePosture

CollectUsbStoragePosture reports usb_storage load state and modprobe blacklist hints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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