[Debian-ha-maintainers] Bug#759473: cluster-glue: wrong owner on core file directories

Ferenc Wágner wferi at niif.hu
Wed Aug 27 12:50:46 UTC 2014


Package: cluster-glue
Version: 1.0.9+hg2665-1
Severity: normal

Hi,

$ ls -l /var/lib/heartbeat/cores/
total 0
drwxr-xr-x 2 root root 6 Feb 29  2012 hacluster
drwxr-xr-x 2 root root 6 Feb 29  2012 nobody
drwxr-xr-x 2 root root 6 Feb 29  2012 root

but these directories should be owned by hacluster and nobody,
respectively (cf. Makefile.am).  I guess dh_fixperms "fixes" this,
but since hacluster is a dynamic user, it should probably be handled
by dpkg-statoverride in postinst, as the Policy Manual explains in
section 10.9.1 The use of dpkg-statoverride.  The nobody directory
could probably be handled by having dh_fixperms simply ignore it.

This is a problem because Pacemaker components running as hacluster
can't write their core files (at least crmd takes care to change its
working directory to /var/lib/heartbeat/cores/hacluster).

By the way I wonder why
https://packages.debian.org/wheezy/amd64/cluster-glue/filelist
does not list any file under /var, while on my wheezy system:

$ dpkg -S /var/lib/heartbeat/cores
cluster-glue: /var/lib/heartbeat/cores
-- 
Regards,
Feri.



More information about the Debian-ha-maintainers mailing list