diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-09-09 09:59:07 -0700 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-09-09 09:59:07 -0700 |
commit | 39869a77cbeb1967acfa1354092c81d05dd79be7 (patch) | |
tree | dc4cc882f80cd3d5bb7344af4d0703d0665316f3 /configure.ac | |
parent | 01b9f5e3b023ef19608bb017560adcca13271e1f (diff) | |
download | ds-39869a77cbeb1967acfa1354092c81d05dd79be7.tar.gz ds-39869a77cbeb1967acfa1354092c81d05dd79be7.tar.xz ds-39869a77cbeb1967acfa1354092c81d05dd79be7.zip |
Add selinux policy for ns-slapd
This adds a "dirsrv" selinux policy module to confine the ns-slapd
daemon. The setup and migration perl modules were changed to take
care of any relabeling of installed files if selinux support was
compiled in.
The build system now takes a "--with-selinux" option that will
compile the dirsrv policy module and enable any selinux specific
setup code.
To use the dirsrv policy module, the module will need to be loaded
using the semodule utility. It is also necessary to relabel the
installed files using restorecon after performing a make install.
All of this will be taken care of in the spec file when in the
case of using a RPM package.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fa540609..b8866435 100644 --- a/configure.ac +++ b/configure.ac @@ -439,6 +439,7 @@ m4_include(m4/icu.m4) m4_include(m4/netsnmp.m4) m4_include(m4/kerberos.m4) m4_include(m4/pcre.m4) +m4_include(m4/selinux.m4) PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'` AC_SUBST(PACKAGE_BASE_VERSION) @@ -450,6 +451,7 @@ else sasl_path="$sasl_libdir/sasl2" fi +AM_CONDITIONAL(SELINUX,test "$with_selinux" = "yes") AM_CONDITIONAL(OPENLDAP,test "$with_openldap" = "yes") # write out paths for binary components |