[Bug 437012] [NEW] eucalyptus-common maintainer script should not add dpkg statoverrides

Steve Langasek steve.langasek at canonical.com
Sat Sep 26 03:49:22 BST 2009


Public bug reported:

The eucalyptus-common maintainer script is calling dpkg-statoverride
--add in the postinst for /usr/lib/eucalyptus/euca_rootwrap.  Packages
should *never* add dpkg statoverrides; statoverrides exist so that
*admins* can tell dpkg to apply different permissions to a file.  Since
this file needs to have permissions that can't be shipped in the tarball
(because we're using a non-standard group), the correct thing to do here
is (pseudocode):

  if ! dpkg-statoverride --list /usr/lib/eucalyptus/euca_rootwrap; then
    chgrp [...]
    chmod [...]
 fi

This will leave a window between unpack and configure when the script
has the wrong permissions, but packages are not guaranteed to be in a
usable state during that window anyway.

When making the above change, additional cleanup handling should be done
to identify any dpkg-statoverrides added by this package and remove
them.

ProblemType: Bug
Architecture: amd64
Date: Fri Sep 25 19:37:38 2009
DistroRelease: Ubuntu 9.10
Package: eucalyptus-common (not installed)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.35-generic
SourcePackage: eucalyptus
Uname: Linux 2.6.31-10-generic x86_64

** Affects: eucalyptus (Ubuntu)
     Importance: Low
         Status: Triaged


** Tags: amd64 apport-bug

-- 
eucalyptus-common maintainer script should not add dpkg statoverrides
https://bugs.launchpad.net/bugs/437012
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to eucalyptus in ubuntu.



More information about the Ubuntu-server-bugs mailing list