Merge lp://staging/~smoser/cloud-initramfs-tools/trunk.lp1641678 into lp://staging/cloud-initramfs-tools
Proposed by
Scott Moser
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 130 | ||||
Proposed branch: | lp://staging/~smoser/cloud-initramfs-tools/trunk.lp1641678 | ||||
Merge into: | lp://staging/cloud-initramfs-tools | ||||
Diff against target: |
44 lines (+12/-6) 2 files modified
overlayroot/etc/overlayroot.conf (+2/-0) overlayroot/scripts/init-bottom/overlayroot (+10/-6) |
||||
To merge this branch: | bzr merge lp://staging/~smoser/cloud-initramfs-tools/trunk.lp1641678 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Seth Arnold (community) | Approve | ||
Dustin Kirkland | Needs Information | ||
cloud-initramfs-tools | Pending | ||
Review via email: mp+310796@code.staging.launchpad.net |
Commit message
overlayroot: write the password to consistent filename
Previously, when overlayroot=crypt was used, and no password was
provided, the password was stored to a filename in /run/initramfs/
named overlayroot.XXXXXX. The XXXXXX template was random.
This just made it more difficult to read that password file.
Now, we publish the passfile as /run/initramfs/
Note, that by design the password file name fits into the template's
possible filenames. This means that if a tool was looking for
/run/initramfs
then it would find
/run/initramfs
To post a comment you must log in.
It's okay with me, but you might want to ask the security team (Tyler, Marc, Jamie?) to review. There are attacks against insecurely created temporary files: https:/ /www.owasp. org/index. php/Insecure_ Temporary_ File I think what you're doing here is okay, since you're creating the temporary file, and then renaming it to the common name. But I do recommend you check with them.