bastion 0.53.2
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m4s
ci / fuzz (push) Successful in 3m45s

This commit is contained in:
Privatae
2026-10-20 04:42:14 +00:00
commit e4c9b69b46
471 changed files with 159794 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
//go:build !linux
package main
// observe:* stub for every platform but Linux. The ops are still in the
// table (so the enforcing vocabulary is the same everywhere and a grant can
// name them) and still answer — {"unsupported": "<goos>"}, exit 0 — because
// "this box cannot say" is a true answer and 126 means "not permitted".
// observe:net is pure Go and works here; the heartbeat carries no posture.
const observeHostSupported = false
func readHostPosture() hostPosture { return hostPosture{} }
func readSockets() any { return observeUnsupported() }
func readFirewall() any { return observeUnsupported() }
func readUnits() any { return observeUnsupported() }
func readDisk() any { return observeUnsupported() }
func readKernel() any { return observeUnsupported() }
func readK8s() any { return observeUnsupported() }