rename password file to consistent name

Bug #1641678 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools (Ubuntu)
Fix Released
Low
Scott Moser
Xenial
Confirmed
Low
Unassigned
Zesty
Fix Released
Low
Scott Moser

Bug Description

When overlayroot is used with config of:
  overlayroot=crypt:dev=/dev/vdc,debug=1,mkfs=1

Then the password that is used for the mount is recorded to
a file in in /run/initramfs (or /dev/.initramfs on older initramfs-tools).
The file name is currently:
   overlayroot.XXXXXX
where the 'XXXXXX' is random as it is the result of
   mktemp overlayroot.XXXXXX

There doesn't seem to be any value in having that filename be random.
Some things to note:
 a.) file is on a tmpfs (initially created in the initramfs and then moved with the pivot)
 b.) file does (and should) have root:root permissions and 0600

It seems a general better idea to make that /run/initramfs/overlayroot.passwd

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: overlayroot 0.31ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-45.66-generic 4.4.21
Uname: Linux 4.4.0-45-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Nov 14 12:28:29 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (480 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitecture: all
SourcePackage: cloud-initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Scott Moser (smoser)
Changed in cloud-initramfs-tools (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Changed in cloud-initramfs-tools (Ubuntu Xenial):
status: New → Confirmed
importance: Undecided → Low
Scott Moser (smoser)
description: updated
Jon Grimm (jgrimm)
Changed in cloud-initramfs-tools (Ubuntu Zesty):
assignee: nobody → Scott Moser (smoser)
Revision history for this message
Scott Moser (smoser) wrote :

This is now fixed in zesty, but missed the changelog entry.
0.33ubuntu1 should have said:
  * overlayroot: change name of password file from randomly generated
    filename /run/initramfs/overlayroot.XXXXXX to
    /run/initramfs/overlayroot.passwd (LP: #1641678).

Changed in cloud-initramfs-tools (Ubuntu Zesty):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.