summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-03-22 23:08:10 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-25 12:14:14 -0400
commita6f5518219fb3358595852eeaa9ad9c3e0410821 (patch)
tree0914dace03b75336d3b9c2d9b7bcfcc0520703bd
parent7c837ddd5b1737b56fc475f7e347efdb067e2330 (diff)
downloadsssd-a6f5518219fb3358595852eeaa9ad9c3e0410821.tar.gz
sssd-a6f5518219fb3358595852eeaa9ad9c3e0410821.tar.xz
sssd-a6f5518219fb3358595852eeaa9ad9c3e0410821.zip
Allow running with read only root
Packages /etc/rwtab.d/sssd file that allows SSSD to run on a read-only root filesystem. Fixes: #428
-rw-r--r--contrib/sssd.spec.in5
-rw-r--r--src/configure.ac2
-rw-r--r--src/examples/rwtab.in1
3 files changed, 7 insertions, 1 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 0256ef246..c6c91dbf1 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -241,6 +241,10 @@ install -m400 src/config/etc/sssd.api.d/* $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sss
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
install -m644 src/examples/logrotate $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/sssd
+# Make sure SSSD is able to run on read-only root
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rwtab.d
+install -m644 src/examples/rwtab $RPM_BUILD_ROOT%{_sysconfdir}/rwtab.d/sssd
+
# Remove .la files created by libtool
rm -f \
$RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
@@ -297,6 +301,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(700,root,root) %dir %{_sysconfdir}/sssd
%config(noreplace) %{_sysconfdir}/sssd/sssd.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/sssd
+%config(noreplace) %{_sysconfdir}/rwtab.d/sssd
%config %{_sysconfdir}/sssd/sssd.api.conf
%attr(700,root,root) %dir %{_sysconfdir}/sssd/sssd.api.d
%config %{_sysconfdir}/sssd/sssd.api.d/
diff --git a/src/configure.ac b/src/configure.ac
index b79bef3e6..52162b7c6 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -149,5 +149,5 @@ AM_CONDITIONAL([HAVE_CHECK], [test x$have_check != x])
abs_build_dir=`pwd`
AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
-AC_CONFIG_FILES([Makefile doxy.config po/Makefile.in])
+AC_CONFIG_FILES([Makefile examples/rwtab doxy.config po/Makefile.in])
AC_OUTPUT
diff --git a/src/examples/rwtab.in b/src/examples/rwtab.in
new file mode 100644
index 000000000..200bbb54c
--- /dev/null
+++ b/src/examples/rwtab.in
@@ -0,0 +1 @@
+dirs @sharedstatedir@/sss