Skip to content

Commit

Permalink
Merge pull request #3406 from marquiz/backports/rdt
Browse files Browse the repository at this point in the history
[1.1] configs/validate: looser validation for RDT
  • Loading branch information
kolyshkin committed Mar 14, 2022
2 parents a3765fb + ee7ba6c commit 6f48ab3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libcontainer/configs/validate/validator.go
Expand Up @@ -229,10 +229,6 @@ func (v *ConfigValidator) sysctl(config *configs.Config) error {

func (v *ConfigValidator) intelrdt(config *configs.Config) error {
if config.IntelRdt != nil {
if !intelrdt.IsCATEnabled() && !intelrdt.IsMBAEnabled() {
return errors.New("intelRdt is specified in config, but Intel RDT is not supported or enabled")
}

if config.IntelRdt.ClosID == "." || config.IntelRdt.ClosID == ".." || strings.Contains(config.IntelRdt.ClosID, "/") {
return fmt.Errorf("invalid intelRdt.ClosID %q", config.IntelRdt.ClosID)
}
Expand Down

0 comments on commit 6f48ab3

Please sign in to comment.