cache: mount readonly in readfile handler

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2017-12-20 22:49:39 -08:00
parent 1eb11bf912
commit 8f007b3d08
1 changed files with 1 additions and 1 deletions

2
cache/fsutil.go vendored
View File

@ -9,7 +9,7 @@ import (
)
func ReadFile(ctx context.Context, ref ImmutableRef, p string) ([]byte, error) {
mount, err := ref.Mount(ctx, false)
mount, err := ref.Mount(ctx, true)
if err != nil {
return nil, err
}