//go:build linux

package sandbox

// newPlatform dispatches the Linux sandbox modes to their concrete impls.
func newPlatform(mode Mode) Sandbox {
	switch mode {
	case ModeUID:
		return &uidSandbox{}
	case ModeContainer:
		return &containerSandbox{}
	default:
		return nil
	}
}
