Bug 1914984
| Summary: | Builtin test in a F34 container on a Centos 7 host behaves differently than /usr/bin/test | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Honza Horak <hhorak> |
| Component: | bash | Assignee: | Siteshwar Vashisht <svashisht> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | admiller, kasal, kdudka, svashisht |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-01-11 16:54:47 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
Honza Horak
2021-01-11 16:39:10 UTC
*** This bug has been marked as a duplicate of bug 1900021 *** Thank you for reporting the bug! This is a known issue, unfortunately. I forgot to say that there is also a RHEL-7 bug for libseccomp, which is most likely the culprit in this case:
bug #1908281
(In reply to Kamil Dudka from comment #3) > I forgot to say that there is also a RHEL-7 bug for libseccomp, which is > most likely the culprit in this case: > > bug #1908281 It is very probable, as with --privileged option it works. Anyway, just to share what I see, just in case it's helpful.. It seems to be reproducible with podman as well actually, but it works fine with F33, so the matrix looks like this: F33 on CentOS 7 (works): # podman run -ti --rm registry.fedoraproject.org/fedora:33 bash -c 'yum -y install mariadb-server &>/dev/null ; test -x /usr/bin/my_print_defaults ; echo $? ; /usr/bin/test -x /usr/bin/my_print_defaults ; echo $?' 0 0 # docker run -ti --rm registry.fedoraproject.org/fedora:33 bash -c 'yum -y install mariadb-server &>/dev/null ; test -x /usr/bin/my_print_defaults ; echo $? ; /usr/bin/test -x /usr/bin/my_print_defaults ; echo $?' 0 0 F34 on CentOS 7 (does not work): # podman run -ti --rm registry.fedoraproject.org/fedora:34 bash -c 'yum -y install mariadb-server &>/dev/null ; test -x /usr/bin/my_print_defaults ; echo $? ; /usr/bin/test -x /usr/bin/my_print_defaults ; echo $?' 1 0 # docker run -ti --rm registry.fedoraproject.org/fedora:34 bash -c 'yum -y install mariadb-server &>/dev/null ; test -x /usr/bin/my_print_defaults ; echo $? ; /usr/bin/test -x /usr/bin/my_print_defaults ; echo $?' 1 0 But will follow #1908281 further. (In reply to Honza Horak from comment #4) > F33 on CentOS 7 (works): This is expected because F33 glibc does not use the faccessat2() syscall. Use of the syscall was (re)introduced in glibc-2.32.9000-16.fc34 per bug #1869030. |