From cc073e74955e3412b6ea1893b4ee68e2aafabaf4 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Jun 16 2006 03:10:44 +0000 Subject: - Fix policygentool gen_requires --- diff --git a/policygentool b/policygentool index 3627af8..1bc0991 100644 --- a/policygentool +++ b/policygentool @@ -46,7 +46,7 @@ interface(`TEMPLATETYPE_domtrans',` allow $1 TEMPLATETYPE_t:fd use; allow TEMPLATETYPE_t $1:fd use; - allow TEMPLATETYPE_t:$1:fifo_file rw_file_perms; + allow TEMPLATETYPE_t $1:fifo_file rw_file_perms; allow TEMPLATETYPE_t $1:process sigchld; ') """ diff --git a/selinux-policy.spec b/selinux-policy.spec index 6067022..bd08a41 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -16,7 +16,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 2.2.47 -Release: 2 +Release: 3 License: GPL Group: System Environment/Base Source: serefpolicy-%{version}.tgz @@ -86,7 +86,7 @@ touch %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts \ touch %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/homedir_template \ touch %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts.homedirs \ install -m0644 ${RPM_SOURCE_DIR}/setrans-%1.conf %{buildroot}%{_sysconfdir}/selinux/%1/setrans.conf \ -ln -sf ../devel/include %{buildroot}%{_usr}/share/selinux/%1/include \ +ln -sf ../devel/include %{buildroot}%{_usr}/share/selinux/%1 \ %nil %define fileList() \ @@ -166,7 +166,6 @@ make clean make NAME=targeted TYPE=targeted-mcs DISTRO=%{distro} DIRECT_INITRC=y MONOLITHIC=%{monolithic} DESTDIR=%{buildroot} PKGNAME=%{name}-%{version} POLY=%3 install-headers install-docs mkdir %{buildroot}%{_usr}/share/selinux/devel/ mv %{buildroot}%{_usr}/share/selinux/targeted/include %{buildroot}%{_usr}/share/selinux/devel/include -rm -f %{buildroot}%{_usr}/share/selinux/devel/include/include install -m 755 ${RPM_SOURCE_DIR}/policygentool %{buildroot}%{_usr}/share/selinux/devel/ install -m 644 ${RPM_SOURCE_DIR}/Makefile.devel %{buildroot}%{_usr}/share/selinux/devel/Makefile install -m 644 doc/example.* %{buildroot}%{_usr}/share/selinux/devel/ @@ -187,6 +186,7 @@ make NAME=strict TYPE=strict-mcs DISTRO=%{distro} DIRECT_INITRC=y MONOLITHIC=%{m make NAME=strict TYPE=strict-mcs DISTRO=%{distro} DIRECT_INITRC=y MONOLITHIC=%{monolithic} POLY=n conf cp -f ${RPM_SOURCE_DIR}/modules-strict.conf ./policy/modules.conf %installCmds strict strict-mcs y n +ln -sf ../devel/include %{buildroot}%{_usr}/share/selinux/strict %endif %if %{BUILD_MLS} @@ -291,7 +291,6 @@ SELinux Reference policy mls base module. %post mls %rebuildpolicy mls %relabel mls -ln -sf ../devel/include /usr/share/selinux/mls/include %files mls %fileList mls @@ -318,7 +317,6 @@ SELinux Reference policy strict base module. %post strict %rebuildpolicy strict %relabel strict -ln -sf ../devel/include /usr/share/selinux/strict/include %triggerpostun strict -- selinux-policy-strict <= 2.2.35-2 cd /usr/share/selinux/strict @@ -335,7 +333,7 @@ semodule -b base.pp -r bootloader -r clock -r dpkg -r fstools -r hotplug -r init %endif %changelog -* Thu Jun 15 2006 Dan Walsh 2.2.47-2 +* Thu Jun 15 2006 Dan Walsh 2.2.47-3 - Fix policygentool gen_requires * Tue Jun 13 2006 Dan Walsh 2.2.47-1