Skip to content

Commit

Permalink
Merge pull request #3787 from kolyshkin/rec-fixup
Browse files Browse the repository at this point in the history
mountToRootfs: minor refactor
  • Loading branch information
AkihiroSuda authored Mar 28, 2023
2 parents 3e3db28 + da98076 commit 2b221a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libcontainer/rootfs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ func mountToRootfs(m *configs.Mount, c *mountConfig) error {
return err
}
}
return setRecAttr(m, rootfs)
case "cgroup":
if cgroups.IsCgroup2UnifiedMode() {
return mountCgroupV2(m, c)
Expand All @@ -483,10 +484,6 @@ func mountToRootfs(m *configs.Mount, c *mountConfig) error {
}
return mountPropagate(m, rootfs, mountLabel, mountFd)
}
if err := setRecAttr(m, rootfs); err != nil {
return err
}
return nil
}

func getCgroupMounts(m *configs.Mount) ([]*configs.Mount, error) {
Expand Down

0 comments on commit 2b221a6

Please sign in to comment.