Chris PeBenito 88e5d7
%define distro redhat
Chris PeBenito 88e5d7
%define direct_initrc y
Chris PeBenito 88e5d7
%define monolithic n
Chris PeBenito 9d343a
%define polname1 targeted
Chris PeBenito 9d343a
%define type1 targeted-mcs
Chris PeBenito 9d343a
%define polname2 strict
Chris PeBenito 9d343a
%define type2 strict-mcs
Chris PeBenito 9d343a
Summary: SELinux policy configuration
Chris PeBenito 9d343a
Name: selinux-policy
Chris PeBenito 88e5d7
Version: 20051019
Chris PeBenito 88e5d7
Release: 1
Chris PeBenito 88e5d7
License: GPL
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Source: refpolicy-%{version}.tar.bz2
Chris PeBenito 88e5d7
Url: http://serefpolicy.sourceforge.net
Chris PeBenito 9d343a
BuildRoot: %{_tmppath}/refpolicy-buildroot
Chris PeBenito 88e5d7
BuildArch: noarch
Chris PeBenito 88e5d7
# FIXME Need to ensure these have correct versions
Chris PeBenito 88e5d7
BuildRequires: checkpolicy m4 policycoreutils python make gcc
Chris PeBenito 88e5d7
PreReq: kernel >= 2.6.4-1.300 policycoreutils >= %{POLICYCOREUTILSVER}
Chris PeBenito 88e5d7
Obsoletes: policy 
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description
Chris PeBenito 88e5d7
SELinux Reference Policy - modular.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%prep
Chris PeBenito 88e5d7
%setup -q
Chris PeBenito 9d343a
make conf
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%build
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%install
Chris PeBenito 9d343a
%{__rm} -fR $RPM_BUILD_ROOT
Chris PeBenito 9d343a
make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} base.pp
Chris PeBenito 9d343a
make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} modules
Chris PeBenito 9d343a
%{__mkdir} -p $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname1}/%{type1}
Chris PeBenito 9d343a
%{__cp} *.pp $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname1}/%{type1}
Chris PeBenito 9d343a
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname1}/policy
Chris PeBenito 9d343a
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname1}/contexts/files
Chris PeBenito 9d343a
make NAME=%{polname1} TYPE=%{type1} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=y DESTDIR=$RPM_BUILD_ROOT install-appconfig
Chris PeBenito 9d343a
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
Chris PeBenito 9d343a
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
Chris PeBenito 9d343a
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} base.pp
Chris PeBenito 9d343a
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=%{monolithic} modules
Chris PeBenito 9d343a
%{__mkdir} -p $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname2}/%{type2}
Chris PeBenito 9d343a
%{__cp} *.pp $RPM_BUILD_ROOT/%{_usr}/share/selinux/%{polname2}/%{type2}
Chris PeBenito 9d343a
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname2}/policy
Chris PeBenito 9d343a
%{__mkdir} -p $RPM_BUILD_ROOT/%{_sysconfdir}/selinux/%{polname2}/contexts/files
Chris PeBenito 9d343a
make NAME=%{polname2} TYPE=%{type2} DISTRO=%{distro} DIRECT_INITRC=%{direct_initrc} MONOLITHIC=y DESTDIR=$RPM_BUILD_ROOT install-appconfig
Chris PeBenito 9d343a
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
Chris PeBenito 9d343a
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
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%clean
Chris PeBenito 9d343a
%{__rm} -fR $RPM_BUILD_ROOT
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/*.pp
Chris PeBenito 9d343a
#%ghost %config(noreplace) %{_sysconfdir}/selinux/config
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/*
Chris PeBenito 9d343a
%ghost %config %{_sysconfdir}/selinux/*/booleans
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/*/policy
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/*/policy/policy.*
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/*/contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/customizable_types
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/dbus_contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/default_contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/default_type
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/failsafe_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/initrc_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/removable_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/*/contexts/userhelper_context
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/*/contexts/files
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/*/contexts/files/file_contexts
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/*/contexts/files/homedir_template
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/*/contexts/files/file_contexts.homedirs
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/*/contexts/files/media
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/*/users
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/*/users/system.users
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/*/users/local.users
Chris PeBenito 9d343a
#%ghost %dir %{_sysconfdir}/selinux/*/modules
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%pre
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%package base-targeted
Chris PeBenito 9d343a
Summary: SELinux %{polname1} base policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 9d343a
Provides: selinux-policy-base
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%description base-targeted
Chris PeBenito 9d343a
SELinux Reference policy targeted base module.
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%files base-targeted
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/%{polname1}
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/%{polname1}/%{type1}
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/%{polname1}/%{type1}/base.pp
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux
Chris PeBenito 9d343a
#%ghost %config(noreplace) %{_sysconfdir}/selinux/config
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname1}
Chris PeBenito 9d343a
%ghost %config %{_sysconfdir}/selinux/%{polname1}/booleans
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname1}/policy
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/policy/policy.*
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname1}/contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/customizable_types
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/dbus_contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/default_contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/default_type
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/failsafe_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/initrc_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/removable_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname1}/contexts/userhelper_context
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname1}/contexts/files
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/contexts/files/file_contexts
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/contexts/files/homedir_template
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname1}/contexts/files/file_contexts.homedirs
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/%{polname1}/contexts/files/media
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname1}/users
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/%{polname1}/users/system.users
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/%{polname1}/users/local.users
Chris PeBenito 9d343a
#%ghost %dir %{_sysconfdir}/selinux/%{polname1}/modules
Chris PeBenito 9d343a
Chris PeBenito 9d343a
%post base-targeted
Chris PeBenito 9d343a
semodule -b /usr/share/selinux/%{polname1}/%{type1}/base.pp -s %{_sysconfdir}/selinux/%{polname1}
Chris PeBenito 9d343a
for file in $(ls /usr/share/selinux/%{polname1}/%{type1} | grep -v base.pp)
Chris PeBenito 9d343a
do semodule -i /usr/share/selinux/%{polname1}/%{type1}/$file -s %{_sysconfdir}/selinux/%{polname1}
Chris PeBenito 9d343a
done
Chris PeBenito 9d343a
Chris PeBenito 9d343a
%package base-strict
Chris PeBenito 9d343a
Summary: SELinux %{polname2} base policy
Chris PeBenito 9d343a
Group: System Environment/Base
Chris PeBenito 9d343a
Provides: selinux-policy-base
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%description base-strict
Chris PeBenito 9d343a
SELinux Reference policy strict base module.
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%files base-strict
Chris PeBenito 9d343a
%defattr(-,root,root)
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/%{polname2}
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/%{polname2}/%{type2}
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/%{polname2}/%{type2}/base.pp
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux
Chris PeBenito 9d343a
#%ghost %config(noreplace) %{_sysconfdir}/selinux/config
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname2}
Chris PeBenito 9d343a
%ghost %config %{_sysconfdir}/selinux/%{polname2}/booleans
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname2}/policy
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/policy/policy.*
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname2}/contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/customizable_types
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/dbus_contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/default_contexts
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/default_type
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/failsafe_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/initrc_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/removable_context
Chris PeBenito 9d343a
%config(noreplace) %{_sysconfdir}/selinux/%{polname2}/contexts/userhelper_context
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname2}/contexts/files
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/contexts/files/file_contexts
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/contexts/files/homedir_template
Chris PeBenito 9d343a
#%ghost %config %{_sysconfdir}/selinux/%{polname2}/contexts/files/file_contexts.homedirs
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/%{polname2}/contexts/files/media
Chris PeBenito 9d343a
%dir %{_sysconfdir}/selinux/%{polname2}/users
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/%{polname2}/users/system.users
Chris PeBenito 9d343a
%config %{_sysconfdir}/selinux/%{polname2}/users/local.users
Chris PeBenito 9d343a
#%ghost %dir %{_sysconfdir}/selinux/%{polname2}/modules
Chris PeBenito 9d343a
Chris PeBenito 9d343a
%post base-strict
Chris PeBenito 9d343a
semodule -b /usr/share/selinux/%{polname2}/%{type2}/base.pp -s %{_sysconfdir}/selinux/%{polname2}
Chris PeBenito 9d343a
for file in $(ls /usr/share/selinux/%{polname2}/%{type2} | grep -v base.pp)
Chris PeBenito 9d343a
do semodule -i /usr/share/selinux/%{polname2}/%{type2}/$file -s %{_sysconfdir}/selinux/%{polname2}
Chris PeBenito 9d343a
done
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package apache
Chris PeBenito 9d343a
Summary: SELinux apache policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 9d343a
Requires: selinux-policy-base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description apache
Chris PeBenito 88e5d7
SELinux Reference policy apache module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files apache
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/apache.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post apache
Chris PeBenito 9d343a
if [ -d %{_sysconfdir}/selinux/%{polname1}/modules ] ; then
Chris PeBenito 9d343a
semodule -n -i %{_usr}/share/selinux/%{polname1}/%{type1}/apache.pp -s %{_sysconfdir}/selinux/%{polname1}
Chris PeBenito 9d343a
fi
Chris PeBenito 9d343a
if [ -d %{_sysconfdir}/selinux/%{polname2}/modules ] ; then
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/%{polname2}/%{type2}/apache.pp -s %{_sysconfdir}/selinux/%{polname2}
Chris PeBenito 9d343a
fi
Chris PeBenito 9d343a
Chris PeBenito 9d343a
%preun apache
Chris PeBenito 9d343a
if [ -d %{_sysconfdir}/selinux/%{polname1}/modules ]
Chris PeBenito 9d343a
then semodule -n -r apache -s %{_sysconfdir}/selinux/%{polname1}
Chris PeBenito 9d343a
fi
Chris PeBenito 9d343a
if [ -d %{_sysconfdir}/selinux/%{polname2}/modules ]
Chris PeBenito 9d343a
then semodule -n -r apache -s %{_sysconfdir}/selinux/%{polname2}
Chris PeBenito 9d343a
fi
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package bind
Chris PeBenito 9d343a
Summary: SELinux bind policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description bind
Chris PeBenito 88e5d7
SELinux Reference policy bind module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files bind
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/bind.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post bind
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/bind.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun bind
Chris PeBenito 88e5d7
semodule -r bind
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package dhcp
Chris PeBenito 9d343a
Summary: SELinux dhcp policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description dhcp
Chris PeBenito 88e5d7
SELinux Reference policy dhcp module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files dhcp
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/dhcp.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post dhcp
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/dhcp.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun dhcp
Chris PeBenito 88e5d7
semodule -r dhcp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package ldap
Chris PeBenito 9d343a
Summary: SELinux ldap policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description ldap
Chris PeBenito 88e5d7
SELinux Reference policy ldap module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files ldap
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/ldap.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post ldap
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/ldap.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun ldap
Chris PeBenito 88e5d7
semodule -r ldap
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package mailman
Chris PeBenito 9d343a
Summary: SELinux mailman policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description mailman
Chris PeBenito 88e5d7
SELinux Reference policy mailman module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files mailman
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/mailman.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post mailman
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/mailman.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun mailman
Chris PeBenito 88e5d7
semodule -r mailman
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package mysql
Chris PeBenito 9d343a
Summary: SELinux mysql policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description mysql
Chris PeBenito 88e5d7
SELinux Reference policy mysql module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files mysql
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/mysql.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post mysql
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcsmysql.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun mysql
Chris PeBenito 88e5d7
semodule -r mysql
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package portmap
Chris PeBenito 9d343a
Summary: SELinux portmap policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description portmap
Chris PeBenito 88e5d7
SELinux Reference policy portmap module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files portmap
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/portmap.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post portmap
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/portmap.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun portmap
Chris PeBenito 88e5d7
semodule -r portmap
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package postgresql
Chris PeBenito 9d343a
Summary: SELinux postgresql policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description postgresql
Chris PeBenito 88e5d7
SELinux Reference policy postgresql module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files postgresql
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/postgresql.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post postgresql
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/postgresql.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun postgresql
Chris PeBenito 88e5d7
semodule -r postgresql
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package samba
Chris PeBenito 9d343a
Summary: SELinux samba policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description samba
Chris PeBenito 88e5d7
SELinux Reference policy samba module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files samba
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/samba.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post samba
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/samba.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun samba
Chris PeBenito 88e5d7
semodule -r samba
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package snmp
Chris PeBenito 9d343a
Summary: SELinux snmp policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description snmp
Chris PeBenito 88e5d7
SELinux Reference policy snmp module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files snmp
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/snmp.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post snmp
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/snmp.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun snmp
Chris PeBenito 88e5d7
semodule -r snmp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package squid
Chris PeBenito 9d343a
Summary: SELinux squid policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description squid
Chris PeBenito 88e5d7
SELinux Reference policy squid module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files squid
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/squid.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post squid
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/squid.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun squid
Chris PeBenito 88e5d7
semodule -r squid
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%package webalizer
Chris PeBenito 9d343a
Summary: SELinux webalizer policy
Chris PeBenito 88e5d7
Group: System Environment/Base
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%description webalizer
Chris PeBenito 88e5d7
SELinux Reference policy webalizer module.
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%files webalizer
Chris PeBenito 88e5d7
%defattr(-,root,root)
Chris PeBenito 88e5d7
%dir %{_usr}/share/selinux
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*
Chris PeBenito 9d343a
%dir %{_usr}/share/selinux/*/*
Chris PeBenito 9d343a
%config %{_usr}/share/selinux/*/*/webalizer.pp
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%post webalizer
Chris PeBenito 9d343a
semodule -i %{_usr}/share/selinux/targeted/targeted-mcs/webalizer.pp
Chris PeBenito 88e5d7
Chris PeBenito 9d343a
%preun webalizer
Chris PeBenito 88e5d7
semodule -r webalizer
Chris PeBenito 88e5d7
Chris PeBenito 88e5d7
%changelog