Bug 2123251
Summary: | podman build and podman run read different seccomp.json file in the same environment | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Joy Pu <ypu> |
Component: | podman | Assignee: | Tom Sweeney <tsweeney> |
Status: | CLOSED ERRATA | QA Contact: | Joy Pu <ypu> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 9.1 | CC: | bbaude, dwalsh, hhei, jnovy, lsm5, mboddu, mheon, pthomas, tsweeney, umohnani |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | podman-4.3.1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-09 07:41:58 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joy Pu
2022-09-01 08:51:26 UTC
Thanks Huijing found this and add her in the cc list for status update Aditya, can you look at this. I suspect this is really an issue with Buildah rather than Podman. Assigning to Jindrich for any further packaging or BZ needs. Dan, Tom, the https://github.com/containers/buildah/pull/4219 is against buildah - is there a similar PR against podman? I don't see it in the podman code yet. Thanks. Yes you are right we should be reading /usr/share/containers/seccomp.json. Nalin fixed it correctly in 4407875a50dbfa237dde404835278526f68161b4 to get the constant out of containers.conf. This is in podman 4.3.1 Just adding a link to Nalin's fix in the Buildah main branch: https://github.com/containers/buildah/pull/4225 Test with podman-4.3.1-3.el9.x86_64, the build command already read from /usr/share/containers/seccomp.json. So move this bug to verified. # podman --log-level debug build --no-cache -t dnsmasq . 2>&1 |grep seccomp.json time="2022-12-29T03:42:02-05:00" level=debug msg="Resources: &define.CommonBuildOptions{AddHost:[]string{}, OmitHistory:false, CgroupParent:\"\", CPUPeriod:0x0, CPUQuota:0, CPUShares:0x0, CPUSetCPUs:\"\", CPUSetMems:\"\", HTTPProxy:true, IdentityLabel:0x1, Memory:0, DNSSearch:[]string{}, DNSServers:[]string{}, DNSOptions:[]string{}, LabelOpts:[]string(nil), MemorySwap:0, NoHosts:false, OmitTimestamp:false, SeccompProfilePath:\"/usr/share/containers/seccomp.json\", ApparmorProfile:\"\", ShmSize:\"65536k\", Ulimit:[]string{}, Volumes:[]string{}, Secrets:[]string{}, SSHSources:[]string{}, OCIHooksDir:[]string{}}" More details: # find / -name "seccomp.json" /etc/crio/seccomp.json /usr/share/containers/seccomp.json *** Bug 2123246 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: podman security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:2282 |