public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Petr Lautrbach <lautrbach@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fapolicyd] rawhide: Fix /run/fapolicyd file attributes
Date: Mon, 27 Jul 2026 13:53:50 GMT	[thread overview]
Message-ID: <178516043048.1.3962360425854311406.rpms-fapolicyd-2bdd6b569b22@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-07-27 13:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178516043048.1.3962360425854311406.rpms-fapolicyd-2bdd6b569b22@fedoraproject.org \
    --to=lautrbach@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox