runc/libcontainer/specconv
Zhang Wei a0f7977f0f Detect and forbid duplicated namespace in spec
When spec file contains duplicated namespaces, e.g.

specs: specs.Spec{
        Linux: &specs.Linux{
            Namespaces: []specs.Namespace{
                {
                    Type: "pid",
                },
                {
                    Type: "pid",
                    Path: "/proc/1/ns/pid",
                },
            },
        },
    }

runc should report malformed spec instead of using latest one by
default, because this spec could be quite confusing.

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2016-10-27 00:44:36 +08:00
..
spec_linux.go Detect and forbid duplicated namespace in spec 2016-10-27 00:44:36 +08:00
spec_linux_test.go Detect and forbid duplicated namespace in spec 2016-10-27 00:44:36 +08:00