public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fapolicyd] rawhide: Fix /run/fapolicyd file attributes
@ 2026-07-27 13:53 Petr Lautrbach
  0 siblings, 0 replies; only message in thread
From: Petr Lautrbach @ 2026-07-27 13:53 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/fapolicyd
            Branch : rawhide
            Commit : 2bdd6b569b2277d237ba516a9c301576144bea83
            Author : Petr Lautrbach <lautrbach@redhat.com>
            Date   : 2026-07-27T15:07:47+02:00
            Stats  : +4/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fapolicyd/c/2bdd6b569b2277d237ba516a9c301576144bea83?branch=rawhide

            Log:
            Fix /run/fapolicyd file attributes

The /run/fapolicyd directory and its files are created and removed at
runtime. As they are not installed from the RPM payload they must be
declared as %ghost and not checked for attributes.

Fixes:
    # systemctl start fapolicyd
    # systemctl stop fapolicyd
    # rpm -V fapolicyd
    missing     /run/fapolicyd

---
diff --git a/fapolicyd.spec b/fapolicyd.spec
index 1f5109a..69f331c 100644
--- a/fapolicyd.spec
+++ b/fapolicyd.spec
@@ -205,8 +205,10 @@ fi
 %attr(644,root,root) %{_mandir}/man5/*
 %ghost %attr(440,%{name},%{name}) %verify(not md5 size mtime) %{_localstatedir}/log/%{name}-access.log
 %attr(770,root,%{name}) %dir %{_localstatedir}/lib/%{name}
-%attr(770,root,%{name}) %dir /run/%{name}
-%ghost %attr(660,root,%{name}) /run/%{name}/%{name}.fifo
+%ghost %attr(770,root,%{name}) %dir %{_rundir}/%{name}
+%ghost %attr(660,root,%{name}) %{_rundir}/%{name}/%{name}.fifo
+%ghost %attr(600,root,root) %verify(not md5 size mtime) %{_rundir}/%{name}/%{name}.pid
+%ghost %attr(640,%{name},%{name}) %verify(not md5 size mtime) %{_rundir}/%{name}/%{name}.state
 %ghost %attr(660,%{name},%{name}) %verify(not md5 size mtime) %{_localstatedir}/lib/%{name}/data.mdb
 %ghost %attr(660,%{name},%{name}) %verify(not md5 size mtime) %{_localstatedir}/lib/%{name}/lock.mdb
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-27 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-27 13:53 [rpms/fapolicyd] rawhide: Fix /run/fapolicyd file attributes Petr Lautrbach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox