Skip to content

Commit

Permalink
Merge pull request #1997 from giuseppe/check-mount-layers-ro
Browse files Browse the repository at this point in the history
check: mount layer as read-only
  • Loading branch information
openshift-merge-bot[bot] committed Jul 8, 2024
2 parents 9dd25f9 + b90afbd commit ec18420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (s *store) Check(options *CheckOptions) (CheckReport, error) {
if options.LayerMountable {
func() {
// Mount the layer.
mountPoint, err := s.graphDriver.Get(id, drivers.MountOpts{MountLabel: layer.MountLabel})
mountPoint, err := s.graphDriver.Get(id, drivers.MountOpts{MountLabel: layer.MountLabel, Options: []string{"ro"}})
if err != nil {
err := fmt.Errorf("%slayer %s: %w", readWriteDesc, id, err)
if isReadWrite {
Expand Down

0 comments on commit ec18420

Please sign in to comment.