MCPcopy
hub / github.com/hardentools/hardentools / showStatus

Function showStatus

main.go:100–112  ·  view source on GitHub ↗

showStatus iterates all harden subjects and prints status of each (checks real status on system)

()

Source from the content-addressed store, hash-verified

98// showStatus iterates all harden subjects and prints status of each
99// (checks real status on system)
100func showStatus() {
101 for _, hardenSubject := range allHardenSubjects {
102 if hardenSubject.IsHardened() {
103 eventText := fmt.Sprintf("%s is now hardened\r\n", hardenSubject.Name())
104 ShowIsHardened(hardenSubject.Name())
105 Info.Print(eventText)
106 } else {
107 eventText := fmt.Sprintf("%s is now NOT hardened\r\n", hardenSubject.Name())
108 ShowNotHardened(hardenSubject.Name())
109 Info.Print(eventText)
110 }
111 }
112}

Callers 4

cmdHardenRestoreFunction · 0.70
hardenAllFunction · 0.70
restoreAllFunction · 0.70
hardenDefaultsAgainFunction · 0.70

Calls 4

ShowIsHardenedFunction · 0.85
ShowNotHardenedFunction · 0.85
IsHardenedMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected