Address rpm verify issues

1. Fix the ownership of /var/lib/nfs/statd/state.  It should be owned by
   root:root, not rpcuser:rpcuser.  This was fixed in RHEL8 in
   https://bugzilla.redhat.com/show_bug.cgi?id=1733445 but that change
   was never propagated to RHEL 9 or Fedora (and thus the issue is
   present in RHEL 10 as well).

2. Both /var/lib/nfs/etab and /var/lib/nfs/rmtab are marked as %config
   files, but they're not config files.  They state files, just like
   /var/lib/nfs/statd/state, so they should be marked %ghost instead.

Resolves: RHEL-77912
Resolves: RHEL-77913
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
This commit is contained in:
Scott Mayhew 2025-02-05 13:40:39 -05:00
parent 630156f572
commit 1ceea4f7dd

View File

@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
Name: nfs-utils
URL: http://linux-nfs.org/
Version: 2.8.2
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 1
# group all 32bit related archs
@ -290,9 +290,9 @@ rm -rf /etc/systemd/system/rpc-*.requires
%dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd
%dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd/sm
%dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd/sm.bak
%ghost %attr(644,rpcuser,rpcuser) %{_statdpath}/state
%config(noreplace) %{_sharedstatedir}/nfs/etab
%config(noreplace) %{_sharedstatedir}/nfs/rmtab
%ghost %attr(644,root,root) %{_statdpath}/state
%ghost %attr(644,root,root) %{_sharedstatedir}/nfs/etab
%ghost %attr(644,root,root) %{_sharedstatedir}/nfs/rmtab
%config(noreplace) %{_sysconfdir}/request-key.d/id_resolver.conf
%config(noreplace) %{_sysconfdir}/modprobe.d/lockd.conf
%config(noreplace) %{_sysconfdir}/nfs.conf
@ -353,7 +353,7 @@ rm -rf /etc/systemd/system/rpc-*.requires
%dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd
%dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd/sm
%dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd/sm.bak
%ghost %attr(644,rpcuser,rpcuser) %{_statdpath}/state
%ghost %attr(644,root,root) %{_statdpath}/state
%config(noreplace) %{_sysconfdir}/nfsmount.conf
%config(noreplace) %{_sysconfdir}/nfs.conf
%config(noreplace) %{_sysconfdir}/request-key.d/id_resolver.conf
@ -433,6 +433,10 @@ rm -rf /etc/systemd/system/rpc-*.requires
%{_mandir}/*/nfsiostat.8.gz
%changelog
* Wed Feb 5 2025 Scott Mayhew <smayhew@redhat.com> 2.8.2-3
- fix ownership of /var/lib/nfs/statd/state (RHEL-77913)
- /var/lib/nfs/{etab,rmtab} should not be marked as config files (RHEL-77912)
* Tue Feb 4 2025 Scott Mayhew <smayhew@redhat.com> 2.8.2-2
- version handling fixes for nfsdctl and rpc.nfsd (RHEL-72477)