[Bug 1331555] Re: Trusty's libsepol1 causes issues with Precise's Upstart during dist-upgrade

Launchpad Bug Tracker 1331555 at bugs.launchpad.net
Tue Dec 9 20:33:14 UTC 2014


This bug was fixed in the package libsepol - 2.2-1ubuntu0.1

---------------
libsepol (2.2-1ubuntu0.1) trusty; urgency=medium

  [ Laurent Bigonville ]
  * Drop debian/libsepol1.postinst: Which had unguarded `telinit u' call,
    which is not strictly needed and otherwise causes unwatned side
    effects to the init process. (Closes: #753727) (LP: #1331555)
 -- Dimitri John Ledkov <dimitri.j.ledkov at linux.intel.com>   Wed, 26 Nov 2014 00:26:53 +0000

** Changed in: libsepol (Ubuntu Trusty)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libsepol in Ubuntu.
https://bugs.launchpad.net/bugs/1331555

Title:
  Trusty's libsepol1 causes issues with Precise's Upstart during dist-
  upgrade

Status in libsepol package in Ubuntu:
  Fix Released
Status in libsepol source package in Trusty:
  Fix Released
Status in libsepol source package in Utopic:
  Fix Released
Status in libsepol package in Debian:
  Fix Released

Bug description:
  Trusty's libsepol1 (2.2-1) has no Upstart version check for the
  'telinit u' call. During the dist-upgrade from Precise to Trusty this
  causes Upstart to loose its state. Because of this Upstart no longer
  knows which PIDs running services have and thus all service reloads
  fail.

  This bug is similarly to bug http://pad.lv/1313712 and the same fix
  applies.

  Faulty code:
  if [ "$1" = "configure" ]; then
   # Restart init. If it fails, there is nothing we can do, so
   # just ignore the error (NOTE: Borrowed from libc6.postinst)
   telinit u 2>/dev/null || true ; sleep 1
  fi

  Correct code:
  if [ "$1" = "configure" ]; then
   # Restart init. If it fails, there is nothing we can do, so
   # just ignore the error (NOTE: Borrowed from libc6.postinst)
   if dpkg --compare-versions "$UPSTART_VERSION_RUNNING" ge 1.6.1; then
    telinit u 2>/dev/null || true ; sleep 1
   fi
  fi

  
  accepted fix in debian packaging is to drop the postinst all together, since none of the libsepol symbols are used by neither upstart or systemd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libsepol/+bug/1331555/+subscriptions



More information about the foundations-bugs mailing list