Skip to content

Commit

Permalink
Merge pull request #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

1 comment on commit 85921e5

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.