diff --git a/fapolicyd-rpm-backend-c99.patch b/fapolicyd-rpm-backend-c99.patch new file mode 100644 index 0000000..56a6674 --- /dev/null +++ b/fapolicyd-rpm-backend-c99.patch @@ -0,0 +1,19 @@ +Include for the rpmFreeCrypto function, to avoid an +implicit function declaration. + +Submitted upstream: + + + +diff --git a/src/library/rpm-backend.c b/src/library/rpm-backend.c +index e5c5f3318285fd4b..6122ef1bf6623522 100644 +--- a/src/library/rpm-backend.c ++++ b/src/library/rpm-backend.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + + #include diff --git a/fapolicyd.spec b/fapolicyd.spec index 6f2aebb..813b072 100644 --- a/fapolicyd.spec +++ b/fapolicyd.spec @@ -5,7 +5,7 @@ Summary: Application Whitelisting Daemon Name: fapolicyd Version: 1.1.7 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: http://people.redhat.com/sgrubb/fapolicyd Source0: https://people.redhat.com/sgrubb/fapolicyd/%{name}-%{version}.tar.gz @@ -31,6 +31,7 @@ Requires(preun): systemd-units Requires(postun): systemd-units Patch1: fapolicyd-uthash-bundle.patch +Patch2: fapolicyd-rpm-backend-c99.patch %description Fapolicyd (File Access Policy Daemon) implements application whitelisting @@ -64,6 +65,8 @@ The %{name}-selinux package contains selinux policy for the %{name} daemon. %patch1 -p1 -b .uthash %endif +%patch2 -p1 -b .c99 + # generate rules for python sed -i "s/%python2_path%/`readlink -f %{__python2} | sed 's/\//\\\\\//g'`/g" rules.d/*.rules sed -i "s/%python3_path%/`readlink -f %{__python3} | sed 's/\//\\\\\//g'`/g" rules.d/*.rules @@ -204,6 +207,9 @@ fi %selinux_relabel_post -s %{selinuxtype} %changelog +* Mon Nov 28 2022 Florian Weimer - 1.1.7-2 +- Avoid implicit declaration of rpmFreeCrypto + * Mon Nov 28 2022 Radovan Sroka - 1.1.7.1 - rebase fapolicyd to v1.1.7 and fapolicyd-selinux to v0.5