MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / isFreeBSD

Method isFreeBSD

agent-source-code/internal/system/system.go:101–108  ·  view source on GitHub ↗

isFreeBSD checks if running on FreeBSD using uname -s

()

Source from the content-addressed store, hash-verified

99
100// isFreeBSD checks if running on FreeBSD using uname -s
101func (d *Detector) isFreeBSD() bool {
102 cmd := exec.Command("uname", "-s")
103 output, err := cmd.Output()
104 if err != nil {
105 return false
106 }
107 return strings.TrimSpace(string(output)) == "FreeBSD"
108}
109
110// isPfSense checks if running on pfSense (FreeBSD-based firewall)
111func (d *Detector) isPfSense() bool {

Callers 2

DetectOSMethod · 0.95
getSELinuxStatusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected