summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-02-02 11:17:51 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-02-03 12:16:13 -0500
commit985e873f90a2dbf5b145b378c40de5b87d206a39 (patch)
treead500ddc364c0ac8ff45ba267d2106b02602ff35
parent5daa8ae758349c0077fb5f664579809aa0ab4f78 (diff)
downloadsssd-985e873f90a2dbf5b145b378c40de5b87d206a39.tar.gz
sssd-985e873f90a2dbf5b145b378c40de5b87d206a39.tar.bz2
sssd-985e873f90a2dbf5b145b378c40de5b87d206a39.zip
Make SSSDConfig API configuration readable
Previously, only root could read these files, but it makes sense to allow non-root users to prototype sssd.conf files.
-rw-r--r--contrib/sssd.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index b8d8c419..16f93219 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -136,8 +136,8 @@ make install DESTDIR=$RPM_BUILD_ROOT
# Copy default sssd.conf file
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd
install -m600 src/examples/sssd.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf
-install -m400 src/config/etc/sssd.api.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.conf
-install -m400 src/config/etc/sssd.api.d/* $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.d/
+install -m444 src/config/etc/sssd.api.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.conf
+install -m444 src/config/etc/sssd.api.d/* $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.d/
# Copy default logrotate file
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
@@ -198,12 +198,12 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %dir %{pubconfpath}
%attr(700,root,root) %dir %{pipepath}/private
%attr(750,root,root) %dir %{_var}/log/%{name}
-%attr(700,root,root) %dir %{_sysconfdir}/sssd
+%attr(711,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
+%attr(755,root,root) %dir %{_sysconfdir}/sssd/sssd.api.d
%config %{_sysconfdir}/sssd/sssd.api.d/
%{_mandir}/man5/sssd.conf.5*
%{_mandir}/man5/sssd-ipa.5*