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

Nick Rosbrook 2067585 at bugs.launchpad.net
Fri Jun 14 13:35:12 UTC 2024


Thanks for reviewing. I have populated this section now.

** Description changed:

  [Impact]
  Upgrades to noble chmod /dev/null 644, breaking use of the device on multi-user systems for non-root.
  
  [Test plan]
  1. do-release-upgrade mantic -> noble
  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.

** Changed in: ubuntu-release-upgrader (Ubuntu Noble)
       Status: Incomplete => In Progress

-- 
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 Committed

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

  [Test plan]
  1. do-release-upgrade mantic -> noble
  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