Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-63052

fapolicyd reloads the RPM database multiple times, one per RPM transaction

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • fapolicyd
    • None
    • No
    • Low
    • rhel-sst-security-special-projects
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      When installing packages as part of multiple transactions, fapolicyd reloads the database again and again even after the last package got installed, as shown in the example below:

      # yumdownloader tcsh
      # for i in {1..100}; do rpm -i tcsh-6.22.03-6.el9.x86_64.rpm; done; date
      Fri Oct 18 09:48:30 AM CEST 2024
      

      Here above, the script finished at "Fri Oct 18 09:48:30 AM CEST 2024", but fapolicyd took 100% of the CPU while reloading constantly for 50 seconds, as seen in the journal:

      Oct 18 09:49:10 vm-fapolicyd9 fapolicyd[5403]: Updated
      

      It hence seems that reloads are stacked instead of being executed just once.

      What is the impact of this issue to you?

      None, just checking the robustness / efficiency

      Please provide the package NVR for which the bug is seen:

      fapolicyd-1.3.2-100.el9_4

      How reproducible is this bug?:

      Always, see above

      Expected results

      RPMDB reloaded a few times during the RPM transactions but finally once after last RPM transaction executed.

      Actual results

      N reloads occurring, with N == number of RPM transactions being executed

              rsroka@redhat.com Radovan Sroka
              rhn-support-rmetrich Renaud Métrich
              Radovan Sroka Radovan Sroka
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: