We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 992a5be commit 700c74cCopy full SHA for 700c74c
libcontainer/factory_linux.go
@@ -27,10 +27,7 @@ const (
27
execFifoFilename = "exec.fifo"
28
)
29
30
-var (
31
- idRegex = regexp.MustCompile(`^[\w+-\.]+$`)
32
- maxIdLen = 1024
33
-)
+var idRegex = regexp.MustCompile(`^[\w+-\.]+$`)
34
35
// InitArgs returns an options func to configure a LinuxFactory with the
36
// provided init binary path and arguments.
@@ -330,8 +327,6 @@ func (l *LinuxFactory) validateID(id string) error {
330
327
if !idRegex.MatchString(id) {
331
328
return newGenericError(fmt.Errorf("invalid id format: %v", id), InvalidIdFormat)
332
329
}
333
- if len(id) > maxIdLen {
334
- return newGenericError(fmt.Errorf("invalid id format: %v", id), InvalidIdFormat)
335
- }
+
336
return nil
337
0 commit comments