Skip to content

Commit

Permalink
Merge pull request containers#21253 from bcooksley/main
Browse files Browse the repository at this point in the history
[FreeBSD] Fix crash when running podman inspect
  • Loading branch information
openshift-merge-bot[bot] authored Jan 16, 2024
2 parents 9fed92b + 971f2eb commit 85921e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 85921e5

Please sign in to comment.