mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
Merge pull request #21253 from bcooksley/main
[FreeBSD] Fix crash when running podman inspect
This commit is contained in:
@ -315,7 +315,7 @@ func (c *Container) GetSecurityOptions() []string {
|
||||
if apparmor, ok := ctrSpec.Annotations[define.InspectAnnotationApparmor]; ok {
|
||||
SecurityOpt = append(SecurityOpt, fmt.Sprintf("apparmor=%s", apparmor))
|
||||
}
|
||||
if c.config.Spec.Linux.MaskedPaths == nil {
|
||||
if c.config.Spec != nil && c.config.Spec.Linux != nil && c.config.Spec.Linux.MaskedPaths == nil {
|
||||
SecurityOpt = append(SecurityOpt, "unmask=all")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user