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

[RHEL 9][NFS utils]owner and group of /var/lib/nfs/statd/state inconsistent with rpm verify

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.6
    • rhel-9.4
    • nfs-utils
    • None
    • nfs-utils-2.5.4-30.el9
    • Yes
    • Moderate
    • rhel-fs
    • 25
    • 26
    • 2
    • Dev ack
    • False
    • False
    • Hide

      None

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

      Problem:

      "rpm -V nfs-utils" complains about /var/lib/nfs/statd/state file owner and group on RHEL 9+

      The owner and group of /var/lib/nfs/statd/state is created as root:root, but the rpm is expecting rpcuser:rpcuser. The result is that a rpm verify on the nfs-utils package is failing

      On RHEL 8.10 this was not the case there the nfs-utils rpm expects the /var/lib/nfs/statd/state to have as root:root

      What is the impact?

      Failure of rpm -V

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

      nfs-utils-2.5.4-26.el9_4.x86_64

      How reproducible is this bug?:

      Consistently

      Steps to reproduce

      RHEL 9.4
      kernel 5.14.0-427.42.1.el9_4.x86_64
      nfs-utils-2.5.4-26.el9_4.x86_64

      1. ll /var/lib/nfs/statd
        total 4
        drwx------. 2 rpcuser rpcuser 6 Aug 16 16:20 sm
        drwx------. 2 rpcuser rpcuser 6 Aug 16 16:20 sm.bak
        rw-rr-. 1 root root 4 Nov 21 12:42 state
      1. rpm -V nfs-utils
        .....UG.. g /var/lib/nfs/statd/state

      Here it reports that user and group ownership differs.

      Based on the listing of the package:

      1. rpm -qlv nfs-utils | grep state
        rw-rr- 1 rpcuser rpcuser 0 Aug 16 16:20 /var/lib/nfs/statd/state

      Ownership defined in the package does not match real ownership of the file.

      Expected results

      Consistency with rpm definitions

      Actual results

      As reported in the problem description and reproducing steps

              rhn-support-smayhew Scott Mayhew
              rhn-support-ssaner Stan Saner
              Scott Mayhew Scott Mayhew
              Yongcheng Yang Yongcheng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: