]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rpm: fix permissions for /etc/ceph/rbdmap
authorKen Dreyer <kdreyer@redhat.com>
Fri, 23 Sep 2016 20:49:56 +0000 (14:49 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Fri, 23 Sep 2016 20:52:16 +0000 (14:52 -0600)
Prior to this change, the RPM packaging would install /etc/ceph/rbdmap
with exectuable permissions. The execute bit is not necessary and does
not match what the Debian packaging does. Remove the execute bit in this
case.

Fixes: http://tracker.ceph.com/issues/17395
Reported-by: Martin Bukatovic <mbukatov@redhat.com>
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
ceph.spec.in

index b1391fa01e9903fbf01e3d7a91bdbd127ffa611b..01191b718e56173694a16c9ac5f156452ab9e1f0 100644 (file)
@@ -731,7 +731,7 @@ make DESTDIR=%{buildroot} install
 # we have dropped sysvinit bits
 rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph
 popd
-install -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
+install -m 0644 -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
 %if 0%{?fedora} || 0%{?rhel}
 install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
 %endif