Skip to content

Commit

Permalink
Merge pull request containerd#5737 from thaJeztah/remove_redundant_check
Browse files Browse the repository at this point in the history
runtime: runc v2: remove redundant validation
  • Loading branch information
fuweid committed Jul 15, 2021
2 parents 34fb8d8 + dbef1d5 commit e830c53
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions runtime/v2/runc/v2/service.go
Expand Up @@ -257,9 +257,6 @@ func (s *service) StartShim(ctx context.Context, opts shim.StartOpts) (_ string,
if opts, ok := v.(*options.Options); ok {
if opts.ShimCgroup != "" {
if cgroups.Mode() == cgroups.Unified {
if err := cgroupsv2.VerifyGroupPath(opts.ShimCgroup); err != nil {
return "", errors.Wrapf(err, "failed to verify cgroup path %q", opts.ShimCgroup)
}
cg, err := cgroupsv2.LoadManager("/sys/fs/cgroup", opts.ShimCgroup)
if err != nil {
return "", errors.Wrapf(err, "failed to load cgroup %s", opts.ShimCgroup)
Expand Down

0 comments on commit e830c53

Please sign in to comment.