Fix seccomp prefix check

This commit is contained in:
Dr. Stefan Schimanski 2016-06-06 12:24:08 +02:00
parent ad6bd78007
commit 12346d5171

View File

@ -1013,7 +1013,7 @@ func (dm *DockerManager) getSecurityOpt(pod *api.Pod, ctrName string) ([]string,
return nil, nil return nil, nil
} }
if !strings.HasPrefix(profile, "localhost") { if !strings.HasPrefix(profile, "localhost/") {
return nil, fmt.Errorf("unknown seccomp profile option: %s", profile) return nil, fmt.Errorf("unknown seccomp profile option: %s", profile)
} }