code: func WithRlimits(daemon *Daemon, c *container.Container) coci.SpecOpts {
  	return func(ctx context.Context, _ coci.Client, _ *containers.Container, s *coci.Spec) error {
  		var rlimits []specs.POSIXRlimit
  
  		// We want to leave the original HostConfig alone so make a copy here
  		hostConfig := *c.HostConfig
  		// Merge with the daemon defaults
  		daemon.mergeUlimits(&hostConfig)
  		for _, ul := range hostConfig.Ulimits {
  			rlimits = append(rlimits, specs.POSIXRlimit{
  				Type: "RLIMIT_" + strings.ToUpper(ul.Name),
  				Soft: uint64(ul.Soft),
  				Hard: uint64(ul.Hard),
  			})
  		}
  
  		s.Process.Rlimits = rlimits
  		return nil
  	}
  }
docs: // WithRlimits sets the container's rlimits along with merging the daemon's rlimits