Skip to content

Commit 72ea6e6

Browse files
author
zhouhao
committed
validate: add other types of validation
Signed-off-by: zhouhao <[email protected]>
1 parent 18a122b commit 72ea6e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

validate/validate.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,7 @@ func namespaceValid(ns rspec.LinuxNamespace) bool {
700700

701701
func deviceValid(d rspec.LinuxDevice) bool {
702702
switch d.Type {
703-
case "b":
704-
case "c":
705-
case "u":
703+
case "b", "c", "u":
706704
if d.Major <= 0 {
707705
return false
708706
}

0 commit comments

Comments
 (0)