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: fapolicyd-2.0.2
Date: Tue, 27 Oct 2026 07:29:17 GMT [thread overview]
Message-ID: <179308615763.1.3059398978254909781.rpms-fapolicyd-12f47053387a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fapolicyd
Branch : rawhide
Commit : 12f47053387a21685b3f1c1ec1e9cdc7fa6230ab
Author : Petr Lautrbach <lautrbach@redhat.com>
Date : 2026-10-23T12:59:00+02:00
Stats : +79/-37 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/fapolicyd/c/12f47053387a21685b3f1c1ec1e9cdc7fa6230ab?branch=rawhide
Log:
fapolicyd-2.0.2
https://github.com/linux-application-whitelisting/fapolicyd/releases/tag/v2.0.2
https://github.com/linux-application-whitelisting/fapolicyd-selinux/releases/tag/v1.3
---
diff --git a/.gitignore b/.gitignore
index 74cdc83..725a729 100644
--- a/.gitignore
+++ b/.gitignore
@@ -69,3 +69,7 @@
/fapolicyd-2.0.tar.gz.asc
/fapolicyd-2.0.1.tar.gz
/fapolicyd-2.0.1.tar.gz.asc
+/fapolicyd-2.0.2.tar.gz
+/fapolicyd-2.0.2.tar.gz.asc
+/fapolicyd-selinux-1.3.tar.gz
+/fapolicyd-selinux-1.3.tar.gz.asc
diff --git a/fapolicyd.spec b/fapolicyd.spec
index 9a383a8..a392873 100644
--- a/fapolicyd.spec
+++ b/fapolicyd.spec
@@ -1,10 +1,16 @@
+%if 0%{?fedora} || 0%{?rhel} > 10
+%bcond_without rpm_plugin
+%else
+%bcond_with rpm_plugin
+%endif
+
%global selinuxtype targeted
%global moduletype distributed
-%define semodule_version 1.2
+%define semodule_version 1.3
Summary: Application Whitelisting Daemon
Name: fapolicyd
-Version: 2.0.1
+Version: 2.0.2
Release: 1%{?dist}
License: GPL-3.0-or-later
URL: https://github.com/linux-application-whitelisting/fapolicyd
@@ -41,11 +47,22 @@ BuildRequires: gnupg
BuildRequires: uthash-devel
%endif
-Requires: rpm-plugin-fapolicyd
+%if %{with rpm_plugin}
+BuildRequires: pkgconfig(rpm)
+%endif
+
Recommends: %{name}-selinux
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
+Requires(posttrans): systemd
+%if %{with rpm_plugin}
+Provides: rpm-plugin-fapolicyd = %{version}-%{release}
+# Current RPM-owned plugin package EVRs are below the next RPM major.
+Obsoletes: rpm-plugin-fapolicyd < 7
+%else
+Requires: rpm-plugin-fapolicyd
+%endif
%description
Fapolicyd (File Access Policy Daemon) implements application whitelisting
@@ -79,22 +96,7 @@ The %{name}-selinux package contains selinux policy for the %{name} daemon.
%setup -q -D -T -b 20
%endif
-# generate rules for python
-sed -i "s|%python2_path%|`readlink -f %{__python2}`|g" rules.d/*.rules
-sed -i "s|%python3_path%|`readlink -f %{__python3}`|g" rules.d/*.rules
-
-# Detect run time linker directly from bash
-interpret=`readelf -e /usr/bin/bash \
- | grep Requesting \
- | sed 's/.$//' \
- | rev | cut -d" " -f1 \
- | rev`
-
-sed -i "s|%ld_so_path%|`realpath $interpret`|g" rules.d/*.rules
-
%build
-cp INSTALL INSTALL.tmp
-
# necessary for updating CFLAGS below
%set_build_flags
@@ -103,10 +105,15 @@ export CFLAGS="$CFLAGS -I%{_builddir}/uthash-2.3.0/include"
%endif
./autogen.sh
-%configure \
- --with-audit \
- --with-rpm \
- --disable-shared
+configure_flags="--with-perf-test --with-audit --with-rpm --disable-shared"
+
+%if %{with rpm_plugin}
+configure_flags="$configure_flags --with-rpm-plugin"
+%else
+configure_flags="$configure_flags --without-rpm-plugin"
+%endif
+
+%configure $configure_flags
%make_build
@@ -124,8 +131,6 @@ make check VERBOSE=yes
%install
%make_install
-install -p -m 644 -D init/%{name}-tmpfiles.conf %{buildroot}/%{_tmpfilesdir}/%{name}.conf
-install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf
mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}
mkdir -p %{buildroot}/run/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/trust.d
@@ -173,6 +178,20 @@ fi
%postun
%systemd_postun_with_restart %{name}.service
+%posttrans
+%if %{with rpm_plugin}
+# The old package's postun may have queued a restart before its loaded RPM
+# plugin reaches tsm_post. Keep the old daemon alive for that one transaction.
+if [ -p %{_rundir}/%{name}/%{name}.fifo ] && \
+ [ ! -p %{_rundir}/%{name}/%{name}-update.fifo ]; then
+ systemctl set-property %{name}.service Markers=-needs-restart || :
+ touch %{_rundir}/%{name}/restart-required
+ chown root:%{name} %{_rundir}/%{name}/restart-required
+ chmod 0640 %{_rundir}/%{name}/restart-required
+ echo "fapolicyd is using its legacy RPM plugin endpoint; restart the service or reboot to complete the plugin migration" >&2
+fi
+%endif
+
%files
%doc README.md
%{!?_licensedir:%global license %%doc}
@@ -185,9 +204,9 @@ fi
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/trust.d
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/rules.d
-%attr(644,root,root) %{_sysconfdir}/bash_completion.d/*
-%ghost %{_sysconfdir}/%{name}/rules.d/*
-%ghost %{_sysconfdir}/%{name}/%{name}.rules
+%attr(644,root,%{name}) %{_sysconfdir}/bash_completion.d/fapolicyd.bash_completion
+%ghost %verify(not md5 size mtime) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/rules.d/*
+%ghost %verify(not md5 size mtime) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.rules
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}-filter.conf
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.trust
@@ -197,19 +216,34 @@ fi
%attr(644,root,root) %{_sysusersdir}/%{name}.conf
%attr(755,root,root) %{_sbindir}/%{name}
%attr(755,root,root) %{_sbindir}/%{name}-cli
-%attr(755,root,root) %{_sbindir}/fagenrules
+%attr(755,root,root) %{_sbindir}/%{name}-perf-test
%attr(755,root,root) %{_libexecdir}/%{name}-rpm-loader
-%attr(644,root,root) %{_mandir}/man8/*
+%attr(755,root,root) %{_sbindir}/fagenrules
+%attr(644,root,root) %{_mandir}/man8/fagenrules.8*
+%attr(644,root,root) %{_mandir}/man8/fapolicyd.8*
+%attr(644,root,root) %{_mandir}/man8/fapolicyd-cli.8*
+%attr(644,root,root) %{_mandir}/man8/fapolicyd-perf-test.8*
%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}
-%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
+%attr(770,root,%{name}) %dir /run/%{name}
+%ghost %attr(600,root,root) %verify(not md5 size mtime) /run/%{name}/%{name}.pid
+%ghost %attr(660,root,%{name}) /run/%{name}/%{name}.fifo
+%ghost %attr(660,root,%{name}) /run/%{name}/%{name}-update.fifo
+%ghost %attr(640,root,%{name}) /run/%{name}/restart-required
+%ghost %attr(640,%{name},%{name}) %verify(not md5 size mtime) /run/%{name}/%{name}.state
+%ghost %attr(640,%{name},%{name}) %verify(not md5 size mtime) /run/%{name}/%{name}.metrics
+%ghost %attr(640,%{name},%{name}) %verify(not md5 size mtime) /run/%{name}/%{name}.timing
%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
+%if %{with rpm_plugin}
+%doc src/plugin/rpm-plugin-migration.md
+%{_libdir}/rpm-plugins/fapolicyd_rpm.so
+%{_rpmconfigdir}/macros.d/macros.transaction_fapolicyd_rpm
+%{_mandir}/man8/fapolicyd-rpm-plugin.8*
+%endif
+
%files selinux
%{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
%{_datadir}/selinux/packages/%{selinuxtype}/%{name}-hardening.cil
@@ -229,6 +263,10 @@ fi
%selinux_relabel_post -s %{selinuxtype}
%changelog
+* Fri Oct 16 2026 Petr Lautrbach <lautrbach@redhat.com> - 2.0.2-1
+- fapolicyd-2.0.2
+ https://github.com/linux-application-whitelisting/fapolicyd/releases/tag/v2.0.2
+
* Wed Aug 19 2026 Petr Lautrbach <lautrbach@redhat.com> - 2.0.1-1
- fapolicyd-2.0.1
https://github.com/linux-application-whitelisting/fapolicyd/releases/tag/v2.0.1
diff --git a/sources b/sources
index b4c92cd..a121e90 100644
--- a/sources
+++ b/sources
@@ -1,5 +1,5 @@
-SHA512 (fapolicyd-2.0.1.tar.gz) = 122b795c52a4be867171464160b48009d83120cad5c72086f04809edd207aa5bcc6938c3a2d0dec5a4dd33c4420920c5188c786e54de32b74adbae03bbf2c81d
-SHA512 (fapolicyd-2.0.1.tar.gz.asc) = 4646f0f615ac81eb685d0133079bef29cae9fd32530adbcf1a49ad446b4f72dee9d9b89d3a78d1fe683ccf70340860faa738bcec35bc616fc0025b5b4c4e991a
-SHA512 (fapolicyd-selinux-1.2.tar.gz) = 7ec54e0c45328e280a1f56aad5987abd6dc40906c715bfdb2c4860bf65061b1206a97064d2f37c5e16d9913e2a529c915c48d5137c24cff85c133372fe363a2c
-SHA512 (fapolicyd-selinux-1.2.tar.gz.asc) = c539ddcf7dda61a3ae1f845e431042cdb7bbd6e9295e0b745eff51f2451a7a2abbd66ccf1794fb699fdf6498161be33da5303b01330fb992d09d48b8ae9e5a60
+SHA512 (fapolicyd-2.0.2.tar.gz) = 684888422550c00421eea973f6e5c84e9ac44941ed30b0a5e86da1838a5dd24a556fd4ef5d72c31f045e4453d36a3d32ab1c305dd592bc80ac64dcd108cbf674
+SHA512 (fapolicyd-2.0.2.tar.gz.asc) = 5417fa7ac1473c777c76d17329d1be079a36ecf0b91d347e5c05563682ba1aa397890f66d1cea29fa4cd02760fd448b1a35b6b826fcfe95f1bbc3b669549e360
+SHA512 (fapolicyd-selinux-1.3.tar.gz) = 8b1a635888590567a4c18519abf37cef7c474911623c55cf662117f0bda2ab5d265bb49395a6604db83d373ca048d49f99e57f04061ed313bb85441bfaf2b54e
+SHA512 (fapolicyd-selinux-1.3.tar.gz.asc) = 166d9d9fa5b0be060ba9a5a6efab81cb72189aa8122efef60abcd2c62124b34bf0f7561c578e0877959146abac705e87eac742f60af610a69830b745d0d7bbe4
SHA512 (uthash-2.3.0.tar.gz) = 3b01f1074790fb242900411cb16eb82c1a9afcf58e3196a0f4611d9d7ef94690ad38c0a500e7783d3efa20328aa8d6ab14f246be63b3b3d385502ba2b6b2a294
reply other threads:[~2026-10-27 7:29 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=179308615763.1.3059398978254909781.rpms-fapolicyd-12f47053387a@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