Trusty's libsepol1 causes issues with Precise's Upstart during dist-upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libsepol (Debian) |
Fix Released
|
Unknown
|
|||
libsepol (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Dimitri John Ledkov | ||
Utopic |
Fix Released
|
High
|
Unassigned |
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://
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_
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.
Related branches
description: | updated |
Changed in libsepol (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in libsepol (Ubuntu Utopic): | |
importance: | Undecided → High |
Changed in libsepol (Ubuntu Trusty): | |
importance: | Undecided → High |
milestone: | none → ubuntu-14.04.2 |
Changed in libsepol (Ubuntu Trusty): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in libsepol (Ubuntu Trusty): | |
status: | Confirmed → In Progress |
Changed in libsepol (Debian): | |
status: | Unknown → Fix Released |
Dimitri, I've just encountered another unchecked 'telinit u' call causing Upstart issues case. :-/