mirror of
https://github.com/containers/podman.git
synced 2025-06-25 20:26:51 +08:00
Add support for kube securityContext\.procMount
Fixes: https://github.com/containers/podman/issues/19881 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -1220,6 +1220,12 @@ func generateKubeSecurityContext(c *Container) (*v1.SecurityContext, bool, error
|
||||
scHasData = true
|
||||
sc.ReadOnlyRootFilesystem = &ro
|
||||
}
|
||||
if c.config.Spec.Linux.MaskedPaths == nil {
|
||||
scHasData = true
|
||||
unmask := v1.UnmaskedProcMount
|
||||
sc.ProcMount = &unmask
|
||||
}
|
||||
|
||||
if c.User() != "" {
|
||||
if !c.batched {
|
||||
c.lock.Lock()
|
||||
|
Reference in New Issue
Block a user