]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: fix permissions for /etc/ceph/rbdmap 11855/head
authorKen Dreyer <kdreyer@redhat.com>
Fri, 23 Sep 2016 20:49:56 +0000 (14:49 -0600)
committerLoic Dachary <ldachary@redhat.com>
Wed, 9 Nov 2016 12:53:11 +0000 (13:53 +0100)
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>
(cherry picked from commit d4b84a13960f9f46593bf89dc92bfc3e54b4851e)

Conflicts:
ceph.spec.in : trivial context resolution

ceph.spec.in

index 9ddd75fb6664d78c8098381f6ffa2008fae1c927..9f4c21a574d84c577a13483113e14cf94c71e6d8 100644 (file)
@@ -700,7 +700,7 @@ make %{?_smp_mflags} check
 make DESTDIR=%{buildroot} install
 find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
 find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'
-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