// createSELinuxStrategy creates a new selinux strategy.
createSELinuxStrategy creates a new selinux strategy.
// createSELinuxStrategy creates a new selinux strategy .
func createSELinuxStrategy(opts *policy.SELinuxStrategyOptions) (selinux.SELinuxStrategy, error) {
	switch opts.Rule {
	case policy.SELinuxStrategyMustRunAs:
		return selinux.NewMustRunAs(opts)
	case policy.SELinuxStrategyRunAsAny:
		return selinux.NewRunAsAny(opts)
	default:
		return nil, fmt.Errorf("Unrecognized SELinuxContext strategy type %s", opts.Rule)
	}
}
func createSELinuxStrategy ( opts * policy . SELinuxStrategyOptions ) ( selinux . SELinuxStrategy , error ) { switch opts . Rule { case policy . SELinuxStrategyMustRunAs : return selinux . NewMustRunAs ( opts ) case policy . SELinuxStrategyRunAsAny : return selinux . NewRunAsAny ( opts ) default : return nil , fmt . Errorf ( " " , opts . Rule ) } }
createSELinuxStrategy creates a new selinux strategy.
createSELinuxStrategy creates a new selinux strategy .