fixes from chad

This commit is contained in:
Chris PeBenito 2005-10-24 15:15:25 +00:00
parent 88e5d70f52
commit 9d343af57c

View File

@ -1,17 +1,19 @@
%define polname refpolicy
%define type targeted-mcs
%define distro redhat %define distro redhat
%define direct_initrc y %define direct_initrc y
%define monolithic n %define monolithic n
Summary: SELinux %{polname} policy configuration %define polname1 targeted
Name: selinux-policy-%{polname} %define type1 targeted-mcs
%define polname2 strict
%define type2 strict-mcs
Summary: SELinux policy configuration
Name: selinux-policy
Version: 20051019 Version: 20051019
Release: 1 Release: 1
License: GPL License: GPL
Group: System Environment/Base Group: System Environment/Base
Source: refpolicy-%{version}.tar.bz2 Source: refpolicy-%{version}.tar.bz2
Url: http://serefpolicy.sourceforge.net Url: http://serefpolicy.sourceforge.net
BuildRoot: %{_tmppath}/%{polname}-buildroot BuildRoot: %{_tmppath}/refpolicy-buildroot
BuildArch: noarch BuildArch: noarch
# FIXME Need to ensure these have correct versions # FIXME Need to ensure these have correct versions
BuildRequires: checkpolicy m4 policycoreutils python make gcc BuildRequires: checkpolicy m4 policycoreutils python make gcc
@ -23,54 +25,163 @@ SELinux Reference Policy - modular.
%prep %prep
%setup -q %setup -q
make conf
%build %build
make conf
make NAME=%{polname} TYPE=%{type} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} base.pp
make NAME=%{polname} TYPE=%{type} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} modules
%install %install
rm -fR $RPM_BUILD_ROOT %{__rm} -fR $RPM_BUILD_ROOT
%{__mkdir} -p $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname}/%{type} make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} base.pp
%{__cp} *.pp $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname}/%{type} make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} modules
%{__mkdir} -p $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname1}/%{type1}
%{__cp} *.pp $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname1}/%{type1}
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname1}/policy
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname1}/contexts/files
make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=y DESTDIR=$RPM_BUILD_ROOT install-appconfig
make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} DESTDIR=$RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_sysconfdir}/selinux/%{polname1}/users/local.users
make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} DESTDIR=$RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_sysconfdir}/selinux/%{polname1}/users/system.users
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} base.pp
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} modules
%{__mkdir} -p $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname2}/%{type2}
%{__cp} *.pp $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname2}/%{type2}
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname2}/policy
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname2}/contexts/files
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=y DESTDIR=$RPM_BUILD_ROOT install-appconfig
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} DESTDIR=$RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_sysconfdir}/selinux/%{polname2}/users/local.users
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} DESTDIR=$RPM_BUILD_ROOT $RPM_BUILD_ROOT%{_sysconfdir}/selinux/%{polname2}/users/system.users
%clean %clean
rm -fR $RPM_BUILD_ROOT %{__rm} -fR $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_sysconfdir}/selinux
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*
%config %{_usr}/share/selinux/%{polname}/%{type}/*.pp %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/*/*/*.pp
#%ghost %config(noreplace) %{_sysconfdir}/selinux/config
%dir %{_sysconfdir}/selinux/*
%ghost %config %{_sysconfdir}/selinux/*/booleans
%dir %{_sysconfdir}/selinux/*/policy
#%ghost %config %{_sysconfdir}/selinux/*/policy/policy.*
%dir %{_sysconfdir}/selinux/*/contexts
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/customizable_types
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/dbus_contexts
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/default_contexts
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/default_type
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/failsafe_context
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/initrc_context
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/removable_context
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/userhelper_context
%dir %{_sysconfdir}/selinux/*/contexts/files
#%ghost %config %{_sysconfdir}/selinux/*/contexts/files/file_contexts
#%ghost %config %{_sysconfdir}/selinux/*/contexts/files/homedir_template
#%ghost %config %{_sysconfdir}/selinux/*/contexts/files/file_contexts.homedirs
%config %{_sysconfdir}/selinux/*/contexts/files/media
%dir %{_sysconfdir}/selinux/*/users
%config %{_sysconfdir}/selinux/*/users/system.users
%config %{_sysconfdir}/selinux/*/users/local.users
#%ghost %dir %{_sysconfdir}/selinux/*/modules
%pre %pre
%post %post
%package base %package base-targeted
Summary: SELinux %{polname} base policy Summary: SELinux %{polname1} base policy
Group: System Environment/Base Group: System Environment/Base
Provides: selinux-policy-base
%description base %description base-targeted
SELinux Reference policy base module. SELinux Reference policy targeted base module.
%files base %files base-targeted
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/%{polname1}
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/%{polname1}/%{type1}
%config %{_usr}/share/selinux/%{polname}/%{type}/base.pp %config %{_usr}/share/selinux/%{polname1}/%{type1}/base.pp
%dir %{_sysconfdir}/selinux
#%ghost %config(noreplace) %{_sysconfdir}/selinux/config
%dir %{_sysconfdir}/selinux/%{polname1}
%ghost %config %{_sysconfdir}/selinux/%{polname1}/booleans
%dir %{_sysconfdir}/selinux/%{polname1}/policy
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/policy/policy.*
%dir %{_sysconfdir}/selinux/%{polname1}/contexts
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/customizable_types
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/dbus_contexts
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/default_contexts
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/default_type
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/failsafe_context
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/initrc_context
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/removable_context
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/userhelper_context
%dir %{_sysconfdir}/selinux/%{polname1}/contexts/files
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/contexts/files/file_contexts
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/contexts/files/homedir_template
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/contexts/files/file_contexts.homedirs
%config %{_sysconfdir}/selinux/%{polname1}/contexts/files/media
%dir %{_sysconfdir}/selinux/%{polname1}/users
%config %{_sysconfdir}/selinux/%{polname1}/users/system.users
%config %{_sysconfdir}/selinux/%{polname1}/users/local.users
#%ghost %dir %{_sysconfdir}/selinux/%{polname1}/modules
%post base %post base-targeted
semodule -b %{_usr}/share/selinux/%{polname}/%{type}/base.pp semodule -b /usr/share/selinux/%{polname1}/%{type1}/base.pp -s %{_sysconfdir}/selinux/%{polname1}
for file in $(ls /usr/share/selinux/%{polname1}/%{type1} | grep -v base.pp)
do semodule -i /usr/share/selinux/%{polname1}/%{type1}/$file -s %{_sysconfdir}/selinux/%{polname1}
done
%postun base %package base-strict
semodule -r base Summary: SELinux %{polname2} base policy
Group: System Environment/Base
Provides: selinux-policy-base
%description base-strict
SELinux Reference policy strict base module.
%files base-strict
%defattr(-,root,root)
%dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname2}
%dir %{_usr}/share/selinux/%{polname2}/%{type2}
%config %{_usr}/share/selinux/%{polname2}/%{type2}/base.pp
%dir %{_sysconfdir}/selinux
#%ghost %config(noreplace) %{_sysconfdir}/selinux/config
%dir %{_sysconfdir}/selinux/%{polname2}
%ghost %config %{_sysconfdir}/selinux/%{polname2}/booleans
%dir %{_sysconfdir}/selinux/%{polname2}/policy
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/policy/policy.*
%dir %{_sysconfdir}/selinux/%{polname2}/contexts
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/customizable_types
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/dbus_contexts
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/default_contexts
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/default_type
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/failsafe_context
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/initrc_context
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/removable_context
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/userhelper_context
%dir %{_sysconfdir}/selinux/%{polname2}/contexts/files
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/contexts/files/file_contexts
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/contexts/files/homedir_template
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/contexts/files/file_contexts.homedirs
%config %{_sysconfdir}/selinux/%{polname2}/contexts/files/media
%dir %{_sysconfdir}/selinux/%{polname2}/users
%config %{_sysconfdir}/selinux/%{polname2}/users/system.users
%config %{_sysconfdir}/selinux/%{polname2}/users/local.users
#%ghost %dir %{_sysconfdir}/selinux/%{polname2}/modules
%post base-strict
semodule -b /usr/share/selinux/%{polname2}/%{type2}/base.pp -s %{_sysconfdir}/selinux/%{polname2}
for file in $(ls /usr/share/selinux/%{polname2}/%{type2} | grep -v base.pp)
do semodule -i /usr/share/selinux/%{polname2}/%{type2}/$file -s %{_sysconfdir}/selinux/%{polname2}
done
%package apache %package apache
Summary: SELinux %{polname} apache policy Summary: SELinux apache policy
Group: System Environment/Base Group: System Environment/Base
Requires: selinux-policy-base
%description apache %description apache
SELinux Reference policy apache module. SELinux Reference policy apache module.
@ -78,18 +189,28 @@ SELinux Reference policy apache module.
%files apache %files apache
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/apache.pp %config %{_usr}/share/selinux/*/*/apache.pp
%post apache %post apache
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/apache.pp if [ -d %{_sysconfdir}/selinux/%{polname1}/modules ] ; then
semodule -n -i %{_usr}/share/selinux/%{polname1}/%{type1}/apache.pp -s %{_sysconfdir}/selinux/%{polname1}
fi
if [ -d %{_sysconfdir}/selinux/%{polname2}/modules ] ; then
semodule -i %{_usr}/share/selinux/%{polname2}/%{type2}/apache.pp -s %{_sysconfdir}/selinux/%{polname2}
fi
%postun apache %preun apache
semodule -r apache if [ -d %{_sysconfdir}/selinux/%{polname1}/modules ]
then semodule -n -r apache -s %{_sysconfdir}/selinux/%{polname1}
fi
if [ -d %{_sysconfdir}/selinux/%{polname2}/modules ]
then semodule -n -r apache -s %{_sysconfdir}/selinux/%{polname2}
fi
%package bind %package bind
Summary: SELinux %{polname} bind policy Summary: SELinux bind policy
Group: System Environment/Base Group: System Environment/Base
%description bind %description bind
@ -98,18 +219,18 @@ SELinux Reference policy bind module.
%files bind %files bind
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/bind.pp %config %{_usr}/share/selinux/*/*/bind.pp
%post bind %post bind
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/bind.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/bind.pp
%postun bind %preun bind
semodule -r bind semodule -r bind
%package dhcp %package dhcp
Summary: SELinux %{polname} dhcp policy Summary: SELinux dhcp policy
Group: System Environment/Base Group: System Environment/Base
%description dhcp %description dhcp
@ -118,18 +239,18 @@ SELinux Reference policy dhcp module.
%files dhcp %files dhcp
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/dhcp.pp %config %{_usr}/share/selinux/*/*/dhcp.pp
%post dhcp %post dhcp
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/dhcp.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/dhcp.pp
%postun dhcp %preun dhcp
semodule -r dhcp semodule -r dhcp
%package ldap %package ldap
Summary: SELinux %{polname} ldap policy Summary: SELinux ldap policy
Group: System Environment/Base Group: System Environment/Base
%description ldap %description ldap
@ -138,18 +259,18 @@ SELinux Reference policy ldap module.
%files ldap %files ldap
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/ldap.pp %config %{_usr}/share/selinux/*/*/ldap.pp
%post ldap %post ldap
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/ldap.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/ldap.pp
%postun ldap %preun ldap
semodule -r ldap semodule -r ldap
%package mailman %package mailman
Summary: SELinux %{polname} mailman policy Summary: SELinux mailman policy
Group: System Environment/Base Group: System Environment/Base
%description mailman %description mailman
@ -158,18 +279,18 @@ SELinux Reference policy mailman module.
%files mailman %files mailman
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/mailman.pp %config %{_usr}/share/selinux/*/*/mailman.pp
%post mailman %post mailman
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/mailman.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/mailman.pp
%postun mailman %preun mailman
semodule -r mailman semodule -r mailman
%package mysql %package mysql
Summary: SELinux %{polname} mysql policy Summary: SELinux mysql policy
Group: System Environment/Base Group: System Environment/Base
%description mysql %description mysql
@ -178,18 +299,18 @@ SELinux Reference policy mysql module.
%files mysql %files mysql
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/mysql.pp %config %{_usr}/share/selinux/*/*/mysql.pp
%post mysql %post mysql
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/mysql.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcsmysql.pp
%postun mysql %preun mysql
semodule -r mysql semodule -r mysql
%package portmap %package portmap
Summary: SELinux %{polname} portmap policy Summary: SELinux portmap policy
Group: System Environment/Base Group: System Environment/Base
%description portmap %description portmap
@ -198,18 +319,18 @@ SELinux Reference policy portmap module.
%files portmap %files portmap
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/portmap.pp %config %{_usr}/share/selinux/*/*/portmap.pp
%post portmap %post portmap
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/portmap.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/portmap.pp
%postun portmap %preun portmap
semodule -r portmap semodule -r portmap
%package postgresql %package postgresql
Summary: SELinux %{polname} postgresql policy Summary: SELinux postgresql policy
Group: System Environment/Base Group: System Environment/Base
%description postgresql %description postgresql
@ -218,18 +339,18 @@ SELinux Reference policy postgresql module.
%files postgresql %files postgresql
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/postgresql.pp %config %{_usr}/share/selinux/*/*/postgresql.pp
%post postgresql %post postgresql
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/postgresql.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/postgresql.pp
%postun postgresql %preun postgresql
semodule -r postgresql semodule -r postgresql
%package samba %package samba
Summary: SELinux %{polname} samba policy Summary: SELinux samba policy
Group: System Environment/Base Group: System Environment/Base
%description samba %description samba
@ -238,18 +359,18 @@ SELinux Reference policy samba module.
%files samba %files samba
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/samba.pp %config %{_usr}/share/selinux/*/*/samba.pp
%post samba %post samba
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/samba.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/samba.pp
%postun samba %preun samba
semodule -r samba semodule -r samba
%package snmp %package snmp
Summary: SELinux %{polname} snmp policy Summary: SELinux snmp policy
Group: System Environment/Base Group: System Environment/Base
%description snmp %description snmp
@ -258,18 +379,18 @@ SELinux Reference policy snmp module.
%files snmp %files snmp
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/snmp.pp %config %{_usr}/share/selinux/*/*/snmp.pp
%post snmp %post snmp
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/snmp.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/snmp.pp
%postun snmp %preun snmp
semodule -r snmp semodule -r snmp
%package squid %package squid
Summary: SELinux %{polname} squid policy Summary: SELinux squid policy
Group: System Environment/Base Group: System Environment/Base
%description squid %description squid
@ -278,18 +399,18 @@ SELinux Reference policy squid module.
%files squid %files squid
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/squid.pp %config %{_usr}/share/selinux/*/*/squid.pp
%post squid %post squid
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/squid.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/squid.pp
%postun squid %preun squid
semodule -r squid semodule -r squid
%package webalizer %package webalizer
Summary: SELinux %{polname} webalizer policy Summary: SELinux webalizer policy
Group: System Environment/Base Group: System Environment/Base
%description webalizer %description webalizer
@ -298,14 +419,14 @@ SELinux Reference policy webalizer module.
%files webalizer %files webalizer
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_usr}/share/selinux %dir %{_usr}/share/selinux
%dir %{_usr}/share/selinux/%{polname} %dir %{_usr}/share/selinux/*
%dir %{_usr}/share/selinux/%{polname}/%{type} %dir %{_usr}/share/selinux/*/*
%config %{_usr}/share/selinux/%{polname}/%{type}/webalizer.pp %config %{_usr}/share/selinux/*/*/webalizer.pp
%post webalizer %post webalizer
semodule -i %{_usr}/share/selinux/%{polname}/%{type}/webalizer.pp semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/webalizer.pp
%postun webalizer %preun webalizer
semodule -r webalizer semodule -r webalizer
%changelog %changelog