RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2034209 - Seccomp rules break F35 container DNS resolution
Summary: Seccomp rules break F35 container DNS resolution
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: podman
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Paul Holzinger
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-20 12:05 UTC by Pavel Raiskup
Modified: 2022-02-26 17:51 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-26 17:51:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1985499 1 unspecified CLOSED podman: Cannot run Fedora 35/RHEL 9 Beta images due to clone3 incompatibility 2023-06-16 07:56:24 UTC
Red Hat Issue Tracker RHELPLAN-106227 0 None None None 2021-12-20 12:08:00 UTC

Internal Links: 1985499 2042582

Description Pavel Raiskup 2021-12-20 12:05:55 UTC
Seems related to: https://github.com/containers/buildah/issues/2168
(or is very similar)

When we run `mock -r fedora-35-x86_64 --shell`, DNF process in
`podman run` fails with:
```
Fedora 35 - x86_64                              0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'fedora':
  - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [getaddrinfo() thread failed to start]
```

What we do in Mock is just `podman start` and `podman exec`, without
--privileged option as non-root user.

Can the seccomp rules be updated to fix DNS resolution newer images?

Comment 3 Neal Gompa 2021-12-20 12:11:48 UTC
This also affects Docker on RHEL 7 too.

Comment 4 Pavel Raiskup 2021-12-20 13:01:01 UTC
> What we do in Mock is just `podman start` and `podman exec`, without
> --privileged option as non-root user.

I checked once more, and we are running it as the root user (bad).  Nevertheless,
I tested that both root/non-root scenario manually and it behaves the same.

Comment 5 Tom Sweeney 2021-12-22 21:33:59 UTC
Paul, can  you take a look at this please?

Comment 7 Giuseppe Scrivano 2022-02-24 13:43:28 UTC
I think it also requires an update in libseccomp which is unlikely to happen in 7.9.

We have a definitive fix for this issue in RHEL 8 but it touches few components and it won't be backported to RHEL 7.

Could you just disable seccomp for F35 containers with `--security-opt seccomp=unconfined`?

Comment 8 Tom Sweeney 2022-02-24 15:37:27 UTC
@praiskup please see https://bugzilla.redhat.com/show_bug.cgi?id=2034209#c7

Comment 9 Pavel Raiskup 2022-02-25 08:33:15 UTC
I think we could turn off seccomp for all images, not only F35?
https://github.com/rpm-software-management/mock/pulls

Comment 10 Pavel Raiskup 2022-02-25 08:33:37 UTC
I mean: https://github.com/rpm-software-management/mock/pull/872

Comment 11 Giuseppe Scrivano 2022-02-25 09:00:48 UTC
better not disable seccomp by default, just do that on RHEL7 when using Fedora35+ images with an updated glibc.

On RHEL 8 there is no need to disable seccomp because ENOSYS will be returned for syscalls unknown to the seccomp profile.

Comment 12 Daniel Walsh 2022-02-26 17:51:10 UTC
There will be no back ported fixes for RHEL7.  It no longer gets updated.  Disable seccomp or update to RHEL 8 is the only option.


Note You need to log in before you can comment on or make changes to this bug.