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