Added SEC prefix for wwlog levels

This SEC-levels are meant for internal documentation of security
relevant messages so that this code sections are marked.
This commit is contained in:
Christian Goll
2022-04-07 11:01:01 +02:00
committed by Christian Goll
parent 95d1b23921
commit 0ef96c575d
2 changed files with 38 additions and 13 deletions

View File

@@ -98,7 +98,7 @@ func BuildHostOverlay() error {
return errors.Wrap(err, "could not build host overlay ")
}
if !(stats.Mode() == os.FileMode(0750|os.ModeDir) || stats.Mode() == os.FileMode(0700|os.ModeDir)) {
wwlog.Printf(wwlog.WARN, "Permissions of host overlay dir %s are %s (750 is considered as secure)\n", hostdir, stats.Mode())
wwlog.Printf(wwlog.SECWARN, "Permissions of host overlay dir %s are %s (750 is considered as secure)\n", hostdir, stats.Mode())
}
return BuildOverlayIndir(host, []string{"host"}, "/")
}