Affected by GO-2022-1000
and 2 other vulnerabilities
GO-2022-1000: KubeVirt vulnerable to arbitrary file read on host in kubevirt.io/kubevirt
GO-2024-2688: KubeVirt NULL pointer dereference flaw in kubevirt.io/kubevirt
GO-2024-2816: kubevirt allows a local attacker to execute arbitrary code via a crafted command in kubevirt.io/kubevirt
package
Version:
v0.48.1
Opens a new window with list of versions in this module.
Published: Dec 10, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 11
Opens a new window with list of known importers.
Documentation
¶
func SanitizeHostname(vmi *v1.VirtualMachineInstance) string
Sanitize hostname according to DNS label rules
If the hostname is taken from vmi.Spec.Hostname
then it already passed DNS label validations.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.