[Bug 1953610] Re: cnf-update-db creates unreadable database if wrong umask

Kellen Renshaw 1953610 at bugs.launchpad.net
Wed Feb 2 18:19:40 UTC 2022


MR for Focal:
https://code.launchpad.net/~krenshaw/ubuntu/+source/command-not-found/+git/command-not-found/+merge/414978

NOTE: the Focal packages in the PPA have a version ending in ubuntu2,
this version is identical to the MR's version ubuntu1. Version was
changed to allow PPA building of packages after an erroneous upload on
my part.

Testing info attached.

** Attachment added: "focal_verify.txt"
   https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1953610/+attachment/5558769/+files/focal_verify.txt

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

Title:
  cnf-update-db creates unreadable database if wrong umask

Status in command-not-found package in Ubuntu:
  Fix Released
Status in command-not-found source package in Bionic:
  Confirmed
Status in command-not-found source package in Focal:
  Confirmed
Status in command-not-found source package in Impish:
  Confirmed
Status in command-not-found source package in Jammy:
  Fix Released

Bug description:
  [Impact]
  If a non-default umask is set for the root user, then the database created by cnf-update-db is not readable by users.

  This fix ensures databases are created with the correct permissions,
  but it does not automatically reset permissions for broken databases.

  [Test plan]
  The umask changes have little regression potential, are tested in a smoke test, and there is a larger test suite that ensures it does not regress other bits (which again, it really shouldn't)

  [Where problems could occur]
  We could have the wrong umask? Admins actually liked c-n-f to crash on them?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1953610/+subscriptions




More information about the foundations-bugs mailing list