X Tutup
Skip to content

Commit e830c53

Browse files
authored
Merge pull request containerd#5737 from thaJeztah/remove_redundant_check
runtime: runc v2: remove redundant validation
2 parents 34fb8d8 + dbef1d5 commit e830c53

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

runtime/v2/runc/v2/service.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,6 @@ func (s *service) StartShim(ctx context.Context, opts shim.StartOpts) (_ string,
257257
if opts, ok := v.(*options.Options); ok {
258258
if opts.ShimCgroup != "" {
259259
if cgroups.Mode() == cgroups.Unified {
260-
if err := cgroupsv2.VerifyGroupPath(opts.ShimCgroup); err != nil {
261-
return "", errors.Wrapf(err, "failed to verify cgroup path %q", opts.ShimCgroup)
262-
}
263260
cg, err := cgroupsv2.LoadManager("/sys/fs/cgroup", opts.ShimCgroup)
264261
if err != nil {
265262
return "", errors.Wrapf(err, "failed to load cgroup %s", opts.ShimCgroup)

0 commit comments

Comments
 (0)
X Tutup