mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-27 16:27:39 +00:00
Merge pull request #22905 from dfr/freebsd-kube
libpod: fix 'podman kube generate' on FreeBSD
This commit is contained in:
commit
a990ca4835
1 changed files with 1 additions and 1 deletions
|
|
@ -1308,7 +1308,7 @@ func generateKubeSecurityContext(c *Container) (*v1.SecurityContext, bool, error
|
|||
scHasData = true
|
||||
sc.ReadOnlyRootFilesystem = &ro
|
||||
}
|
||||
if c.config.Spec.Linux.MaskedPaths == nil {
|
||||
if c.config.Spec.Linux != nil && c.config.Spec.Linux.MaskedPaths == nil {
|
||||
scHasData = true
|
||||
unmask := v1.UnmaskedProcMount
|
||||
sc.ProcMount = &unmask
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue