(ctx context.Context, mounts []mount.Mount, idMap userns.IDMap)
| 119 | } |
| 120 | |
| 121 | func remapRootFS(ctx context.Context, mounts []mount.Mount, idMap userns.IDMap) error { |
| 122 | return mount.WithTempMount(ctx, mounts, func(root string) error { |
| 123 | return filepath.Walk(root, chown(root, idMap)) |
| 124 | }) |
| 125 | } |
| 126 | |
| 127 | func chown(root string, idMap userns.IDMap) filepath.WalkFunc { |
| 128 | return func(path string, info os.FileInfo, err error) error { |
no test coverage detected
searching dependent graphs…