Skip to content

Commit

Permalink
Improve selinux module build on fedora < 40
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasKorbar committed Jun 27, 2024
1 parent cd8fbec commit 5d6e0b2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions distribution/dnsconfd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,8 @@ Dnsconfd management of unbound server
%build
%py3_build

mkdir selinux
cp -p distribution/dnsconfd.fc selinux/
cp -p distribution/dnsconfd.te selinux/

%if %{defined fedora} && 0%{?fedora} < 40 || %{defined rhel} && 0%{?rhel} < 10
echo '/var/run/dnsconfd(/.*)? gen_context(system_u:object_r:dnsconfd_var_run_t,s0)' >> selinux/dnsconfd.fc
echo '/var/run/dnsconfd(/.*)? gen_context(system_u:object_r:dnsconfd_var_run_t,s0)' >> distribution/dnsconfd.fc
%endif

make -f %{_datadir}/selinux/devel/Makefile %{modulename}.pp
Expand Down

0 comments on commit 5d6e0b2

Please sign in to comment.