1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

Merge pull request #665 from marquiz/fixes/selinux

source/kernel: don't advertise selinux.enabled=false
This commit is contained in:
Kubernetes Prow Robot 2021-11-24 06:26:20 -08:00 committed by GitHub
commit 7e4dd6c8d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,8 +105,8 @@ func (s *kernelSource) GetLabels() (source.FeatureLabels, error) {
}
}
for k, v := range features.Values[SelinuxFeature].Elements {
labels[SelinuxFeature+"."+k] = v
if enabled, ok := features.Values[SelinuxFeature].Elements["enabled"]; ok && enabled == "true" {
labels["selinux.enabled"] = "true"
}
return labels, nil