I've just dropped the postinst script that reload the init during the
upgrade of libsepol.

It was also causing issues with systemd actually. And anyway nor upstart
nor systemd was using any of it's symbols directly (libsepol is
statically linked in libselinux)

So this should be fixed in 2.3-2

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  Confirmed
Status in “libsepol” source package in Trusty:
  Confirmed
Status in “libsepol” source package in Utopic:
  Confirmed

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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to