diff options
author | François Andriot <albator78@libertysurf.fr> | 2019-12-03 22:14:08 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2019-12-08 16:12:10 +0100 |
commit | 030be2b4a8760a29c2d992052173c17526cc1455 (patch) | |
tree | 0467e813a8d6feb049d7ef811901d4327368be3a /redhat/main/tdebase/tdebase.spec | |
parent | d257b83fd4500c4543d8768332123a895c12b29d (diff) | |
download | tde-packaging-030be2b4a8760a29c2d992052173c17526cc1455.tar.gz tde-packaging-030be2b4a8760a29c2d992052173c17526cc1455.zip |
RPM: update selinux support in tdebase
Diffstat (limited to 'redhat/main/tdebase/tdebase.spec')
-rw-r--r-- | redhat/main/tdebase/tdebase.spec | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/redhat/main/tdebase/tdebase.spec b/redhat/main/tdebase/tdebase.spec index be68c4eeb..15d204b21 100644 --- a/redhat/main/tdebase/tdebase.spec +++ b/redhat/main/tdebase/tdebase.spec @@ -92,7 +92,7 @@ Source7: xdm%{?dist} %if 0%{?fedora} >= 17 || 0%{?rhel} >= 6 %define with_selinux_policy 1 -Source8: tdm%{?dist}.pp +Source8: tdm%{?dist}.te %endif %if 0%{?mgaversion} >= 3 @@ -769,6 +769,12 @@ BuildRequires: libnsl-devel # ATTR support BuildRequires: libattr-devel +# SELINUX support +%if 0%{?rhel} >= 6 || 0%{?fedora} +BuildRequires: checkpolicy +BuildRequires: selinux-policy-devel +%endif + # tdebase is a metapackage that installs all sub-packages Requires: %{name}-runtime-data-common = %{version}-%{release} Requires: %{name}-data = %{version}-%{release} @@ -3563,7 +3569,9 @@ fi # SELINUX policy for RHEL / Fedora %if 0%{?with_selinux_policy} -%__install -D -m 644 "%{SOURCE8}" "%{?buildroot}%{tde_confdir}/%{tdm}/tdm.pp" +%__cp -f "%{SOURCE8}" "tdm.te" +%__make -f "%{_datadir}/selinux/devel/Makefile" +%__install -D -m 644 -D "tdm.pp" "%{?buildroot}%{tde_confdir}/%{tdm}/tdm.pp" %endif # Mageia icon for TDE menu |