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

Launchpad Bug Tracker 1953610 at bugs.launchpad.net
Fri Jan 28 17:32:40 UTC 2022


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: command-not-found (Ubuntu Focal)
       Status: New => Confirmed

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