Skip to content

Commit

Permalink
use native upstream selinux policy v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sopos committed May 2, 2023
1 parent 20fc096 commit faf6108
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions CI/fapolicyd.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%global selinuxtype targeted
%global moduletype contrib
%define semodule_version 0.5
%define semodule_version 0.6

Summary: Application Whitelisting Daemon
Name: fapolicyd
Expand All @@ -9,7 +9,8 @@ Release: 1
License: GPL-3.0-or-later
URL: http://people.redhat.com/sgrubb/fapolicyd
Source0: https://people.redhat.com/sgrubb/fapolicyd/%{name}-%{version}.tar.gz
Source1: https://github.com/linux-application-whitelisting/%{name}-selinux/archive/refs/tags/v%{semodule_version}.tar.gz#/%{name}-selinux-%{semodule_version}.tar.gz
#S#ource1: https://github.com/linux-application-whitelisting/%{name}-selinux/archive/refs/tags/v%{semodule_version}.tar.gz#/%{name}-selinux-%{semodule_version}.tar.gz
Source1: https://github.com/sopos/%{name}-selinux/archive/refs/tags/v%{semodule_version}.tar.gz#/%{name}-selinux-%{semodule_version}.tar.gz
# we bundle uthash for rhel9
Source2: https://github.com/troydhanson/uthash/archive/refs/tags/v2.3.0.tar.gz#/uthash-2.3.0.tar.gz
BuildRequires: gcc
Expand All @@ -27,8 +28,6 @@ Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

Patch1: fapolicyd-selinux.patch
Patch2: fapolicyd-selinux-el8.patch
Patch3: fapolicyd-uthash-bundle.patch

%description
Expand All @@ -55,11 +54,6 @@ The %{name}-selinux package contains selinux policy for the %{name} daemon.
# selinux
%setup -q -D -T -a 1

%patch1 -p1 -b .selinux
%if 0%{?rhel} == 8
%patch2 -p1 -b .selinux-el8
%endif

%if 0%{?rhel} != 0
# uthash
%setup -q -D -T -a 2
Expand Down

0 comments on commit faf6108

Please sign in to comment.