[Bug 2067585] Re: Upgrades to noble chmod /dev/null 644

Launchpad Bug Tracker 2067585 at bugs.launchpad.net
Thu Jun 27 18:38:11 UTC 2024


This bug was fixed in the package ubuntu-release-upgrader - 1:24.04.19

---------------
ubuntu-release-upgrader (1:24.04.19) noble; urgency=medium

  * DistUpgrade: drop quirk for systems with BIOS and XFS /boot (LP: #2067886)
  * DistUpgradeQuirks: make sure replacement.candidate is not None
    (LP: #2067071)
  * DistUpgrade: use tempfile for apt extended_states during simulation
    (LP: #2067585)
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <enr0n at ubuntu.com>  Tue, 04 Jun 2024 11:55:51 -0400

** Changed in: ubuntu-release-upgrader (Ubuntu Noble)
       Status: Fix Committed => Fix Released

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

Title:
  Upgrades to noble chmod /dev/null 644

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Noble:
  Fix Released

Bug description:
  [Impact]
  Upgrades to noble chmod /dev/null 644, breaking use of the device on multi-user systems for non-root.

  [Test plan]

  Upgrade from mantic to noble:

  1. do-release-upgrade --proposed
  2. check that /dev/null remains 666

  [Where problems could occur]

  This patch makes apt use a tempfile for extended_states during the
  dist-upgrade simulation. The change is confined to the simulation, so
  that is where we would see problems, potentially about the
  permissions/existence of the tempfile we use.

  [Details]
  This is a regression of the fix for bug 2064090, where we pointed apt_pkg.config["Dir::State::extended_states"] = "/dev/null" in the simulation to not lose the automatically installed bit, as we need that later, apt chmod's it extended_states.

  The fix for this is to create a temporary file for extended_states,
  and then remove the temporary file at the end of the simulation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2067585/+subscriptions




More information about the foundations-bugs mailing list