Skip to content

Commit

Permalink
drivers.NaiveDiffDriver.Changes(): mount the parent read-only
Browse files Browse the repository at this point in the history
The parent layer, by virtue of being a parent layer isn't going to be
modified, so default to mounting it read-only.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
  • Loading branch information
nalind committed Jan 27, 2022
1 parent a719ec7 commit d467d9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/fsdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func (gdw *NaiveDiffDriver) Changes(id string, idMappings *idtools.IDMappings, p
if parent != "" {
options := MountOpts{
MountLabel: mountLabel,
Options: []string{"ro"},
}
parentFs, err = driver.Get(parent, options)
if err != nil {
Expand Down

0 comments on commit d467d9f

Please sign in to comment.