Skip to content

Commit

Permalink
retain read only root file system in determineEffectiveSecurityContext
Browse files Browse the repository at this point in the history
  • Loading branch information
pweil- committed May 11, 2016
1 parent e0f7de9 commit 04dc71f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/securitycontext/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ func DetermineEffectiveSecurityContext(pod *api.Pod, container *api.Container) *
*effectiveSc.RunAsNonRoot = *containerSc.RunAsNonRoot
}

if containerSc.ReadOnlyRootFilesystem != nil {
effectiveSc.ReadOnlyRootFilesystem = new(bool)
*effectiveSc.ReadOnlyRootFilesystem = *containerSc.ReadOnlyRootFilesystem
}

return effectiveSc
}

Expand Down

0 comments on commit 04dc71f

Please sign in to comment.