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 1895583 - Erratum RHBA-2020:4969 is of no help when upgrading partially RHEL 8.2 systems
Summary: Erratum RHBA-2020:4969 is of no help when upgrading partially RHEL 8.2 systems
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: fapolicyd
Version: 8.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: 8.0
Assignee: Radovan Sroka
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1906472 1906473 1906474
TreeView+ depends on / blocked
 
Reported: 2020-11-07 09:51 UTC by Renaud Métrich
Modified: 2024-03-25 16:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1906472 1906473 1906474 (view as bug list)
Environment:
Last Closed: 2021-01-05 14:55:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5542661 0 None None None 2020-11-07 09:56:01 UTC

Description Renaud Métrich 2020-11-07 09:51:12 UTC
Description of problem:

This BZ is to make everybody aware that applying fapolicyd erratum RHBA-2020:4969 (https://access.redhat.com/errata/RHBA-2020:4969) won't help upgrading RHEL 8.2 systems partially, e.g. when applying security patches only:

-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
# rpm -q fapolicyd
fapolicyd-0.9.1-4.el8.x86_64

# yum -y update --security
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

The command will upgrade systemd and cryptsetup-libs to 8.3 level and provoke the system crash leading to system corruption and "systemd: Freezing execution" state after reboot.

We need to make sure that fapolicyd gets automatically updated to fapolicyd-1.0-3.el8_3.2 when applying security fixes.


Version-Release number of selected component (if applicable):

fapolicyd-0.9.1-4.el8.x86_64


How reproducible:

ALWAYS


Steps to Reproduce:
1. Verify fapolicyd-0.9.1-4.el8.x86_64 is installed and fapolicyd is active

2. Partially update the system

  -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
  # yum -y update systemd cryptsetup-libs
  -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

  or issue

  -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
  # yum -y update --security
  -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------


Actual results:

  CRASH, then freeze upon reboot

  -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
  [  !!  ] Failed to execute /sbin/init
  [!!!!!!] Failed to execute fallback shell, freezing.
  -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------  

Expected results:

  fapolicyd updated as well to avoid the crash

Comment 1 Renaud Métrich 2020-11-07 09:56:20 UTC
KCS https://access.redhat.com/solutions/5542661 has a "safe upgrade" procedure.

Comment 2 Renaud Métrich 2020-11-09 07:49:17 UTC
Additionally, the erratum doesn't install properly on 8.1 systems when upgrading from 8.1 to 8.3 is issued.

The fapolicyd service fails, which hopefully enables upgrading "safely":
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
Job for fapolicyd.service failed because the control process exited with error code.
See "systemctl status fapolicyd.service" and "journalctl -xe" for details.
error: %pretrans(fapolicyd-1.0-3.el8_3.2.x86_64) scriptlet failed, exit status 1

[...]

  Running scriptlet: fapolicyd-selinux-1.0-3.el8_3.2.noarch                                                   231/556 
error: fapolicyd-1.0-3.el8_3.2.x86_64: install skipped

error: fapolicyd-0.8.10-3.el8_1.3.x86_64: erase skipped

[...]

Failed:
  fapolicyd-1.0-3.el8_3.2.x86_64                           fapolicyd-0.8.10-3.el8_1.3.x86_64                          

Error: Transaction failed
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------


This happens because the rule is not compatible with older 8.1:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
fapolicyd[8340]: Field type (perm) is unknown in line 1
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

To recover, the admin must update the package again (it remains at 8.1 level):
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
# yum -y update fapolicyd
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Finally he must reset the "failed state":
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
# systemctl reset-failed fapolicyd
# systemctl restart fapolicyd
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------


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