rename password file to consistent name
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=
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.
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/
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: overlayroot 0.31ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-45-generic x86_64
NonfreeKernelMo
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)
PackageArchitec
SourcePackage: cloud-initramfs
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Seth Arnold (community): Approve
- Dustin Kirkland : Needs Information
- cloud-initramfs-tools: Pending requested
-
Diff: 44 lines (+12/-6)2 files modifiedoverlayroot/etc/overlayroot.conf (+2/-0)
overlayroot/scripts/init-bottom/overlayroot (+10/-6)
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 |
description: | updated |
Changed in cloud-initramfs-tools (Ubuntu Zesty): | |
assignee: | nobody → Scott Moser (smoser) |
This is now fixed in zesty, but missed the changelog entry. overlayroot. XXXXXX to initramfs/ overlayroot. passwd (LP: #1641678).
0.33ubuntu1 should have said:
* overlayroot: change name of password file from randomly generated
filename /run/initramfs/
/run/