Bug 1777502
| Summary: | error: lsetfilecon: (/boot/efi/EFI/redhat/fonts, system_u:object_r:boot_t:s0) Operation not supported | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Welterlen Benoit <bwelterl> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8.1 | CC: | bugzilla, dbodnarc, dornelas, james.antill, jpbn, jwedgeco, leonfauster, mdomonko, mkenjale, pdwyer, peter.vreman, pjanda, pkratoch, pmatilai, prd-fedora, pzhukov, wasphin |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rpm-4.14.3-1.el8 | Doc Type: | Bug Fix |
| Doc Text: |
Cause:
A package is installed on a file system that doesn't support the setting of SELinux security contexts.
Consequence:
RPM prints an error message about the operation not being supported, although it exits with code 0 (success).
Fix:
RPM has been fixed to not print the message, as it's considered spurious in this scenario. The point being, if the FS doesn't support the contexts, there's no point in complaining about it in RPM.
Result:
RPM no longer prints an error message in this scenario.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 02:03:16 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: | |||
| Bug Depends On: | 1765187 | ||
| Bug Blocks: | 1743676, 1825061 | ||
|
Description
Welterlen Benoit
2019-11-27 16:27:42 UTC
That message comes from rpm-plugin-selinux, yum is not involved. Silencing it is easy, just makes me wonder what the right thing to do is. Clearly if a filesystem doesn't support labeling there's not much point complaining about it, BUT only if this is an expected situation. With EFI it is, but there are situations where that might not be the case. Thanks for the component change. If the FS does not allow extended attributes, it should not try to lsetxattr. Or the error should be filtered if it's due to FS capabilities. Thanks Benoit Proposed upstream fix: https://github.com/rpm-software-management/rpm/pull/976 Just to be clear: the error is cosmetical, rpm is already filtering out -EOPNOTSUPP error so the install doesn't fail, it's just unnecessarily noisy about it. Looks like the same problem as bug 1722766. it is also in fedora 32. several times in dnf update. One of them is Error: lsetfilecon: (/boot/efi/EFI/fedora/gcdx64.efi;5e73b099, system_u:object_r:boot_t:s0) Operation not supported error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported error: lsetfilecon: (/boot/efi/EFI/fedora/grubia32.efi;5e73b099, system_u:object_r:boot_t:s0) Operation not supported Upgrading : grub2-efi-x64-1:2.04-10.fc32.x86_64 26/72 error: lsetfilecon: (/boot/efi/EFI/fedora/grubx64.efi;5e73b099, system_u:object_r:boot_t:s0) Operation not supported Upgrading : grub2-tools-extra-1:2.04-10.fc32.x86_64 27/72 Upgrading : grub2-efi-ia32-cdboot-1:2.04-10.fc32.x86_64 28/72 error: lsetfilecon: (/boot/efi/EFI/fedora/fonts, system_u:object_r:boot_t:s0) Operation not supported error: lsetfilecon: (/boot/efi/EFI/fedora/fonts/unicode.pf2;5e73b099, system_u:object_r:boot_t:s0) Operation not supported error: lsetfilecon: (/boot/efi/EFI/fedora/gcdia32.efi;5e73b099, system_u:object_r:boot_t:s0) Operation not supported Upgrading : grub2-efi-x64-cdboot-1:2.04-10.fc32.x86_64 29/72 error: lsetfilecon: (/boot/efi/EFI/fedora/gcdx64.efi;5e73b099, system_u:object_r:boot_t:s0) Operation not supported *** Bug 1827087 has been marked as a duplicate of this bug. *** *** Bug 1783201 has been marked as a duplicate of this bug. *** *** Bug 1798530 has been marked as a duplicate of this bug. *** *** Bug 1845168 has been marked as a duplicate of this bug. *** These are outputs of CentOS8 but I had the same on RHEL: While updating EL8.1 to EL8.2 Ausgeführtes Scriptlet: libgcc-8.3.1-5.el8.0.2.x86_64 1/1422 Aktualisieren : grub2-common-1:2.02-81.el8.noarch 2/1422 Fehler: lsetfilecon: (/boot/efi/EFI/centos, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Aktualisieren : libreoffice-data-1:6.0.6.1-20.el8.noarch 3/1422 Ausgeführtes Scriptlet: libreoffice-data-1:6.0.6.1-20.el8.noarch 3/1422 Aktualisieren : liberation-fonts-common-1:2.00.3-7.el8.noarch Aktualisieren : nss-tools-3.44.0-15.el8.x86_64 626/1422 Aktualisieren : composer-cli-28.14.42-2.el8_2.x86_64 627/1422 Aktualisieren : grub2-efi-x64-1:2.02-81.el8.x86_64 628/1422 Fehler: lsetfilecon: (/boot/efi/EFI/centos/fonts, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Fehler: lsetfilecon: (/boot/efi/EFI/centos/grubx64.efi;5ee8b714, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Aktualisieren : hyperv-daemons-0-0.28.20180415git.el8.x86_64 629/1422 Aktualisieren : samba-4.11.2-13.el8.x86_64 630/1422 Ausgeführtes Scriptlet: samba-4.11.2-13.el8.x86_64 Aktualisieren : grub2-pc-modules-1:2.02-81.el8.noarch 701/1422 Aktualisieren : shim-x64-15-11.el8.x86_64 702/1422 Fehler: lsetfilecon: (/boot/efi/EFI/BOOT/BOOTX64.EFI;5ee8b714, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Fehler: lsetfilecon: (/boot/efi/EFI/BOOT/fbx64.efi;5ee8b714, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Fehler: lsetfilecon: (/boot/efi/EFI/centos/BOOTX64.CSV;5ee8b714, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Fehler: lsetfilecon: (/boot/efi/EFI/centos/mmx64.efi;5ee8b714, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Fehler: lsetfilecon: (/boot/efi/EFI/centos/shimx64-centos.efi;5ee8b714, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Fehler: lsetfilecon: (/boot/efi/EFI/centos/shimx64.efi;5ee8b714, system_u:object_r:boot_t:s0) Die Operation wird nicht unterstützt Aktualisieren : mobile-broadband-provider-info-20190618-2.el8.noarch 703/1422 Aktualisieren : libertas-usb8388-firmware-2:20191202-97.gite8a0f4c9.el8.noarch Hi Leon, on RHEL8, the bug has been fixed in rpm-4.14.3-1.el8. Which version of rpm do you have on your RHEL system? For older versions of rpm the error messages are expected. We use a custom AMI on AWS which is based on 8.1 and then we do the update, so an older version of rpm. But good to see that the fix is there (https://bugzilla.redhat.com/show_bug.cgi?id=1765187) We should update the AMI. Thanks. 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 (rpm bug fix and enhancement 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/RHBA-2020:4561 |