Dropbear's initramfs scripts mount /dev/pts a second time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dropbear (Debian) |
Fix Released
|
Unknown
|
|||
dropbear (Ubuntu) |
Fix Released
|
Undecided
|
Chris J Arges | ||
Precise |
Fix Released
|
Undecided
|
Chris J Arges |
Bug Description
[Impact]
The dropbear package includes an initramfs script, /usr/share/
[Test Case]
Line 23 in /usr/share/
mount -t devpts none /dev/pts
Line 25 in /usr/share/
mount -t devpts -o noexec,
The second mount from dropbear fails since /dev/pts is already mounted, but it does change the mount options:
mwharris@
devpts /dev/pts devpts rw,nosuid,
I'm not sure why dropbear tried to mount devpts a second time, but it seems like the best fix would just be to remove /usr/share/
I'm on Precise using dropbear_2011.54-1 and initramfs-
[Regression Potential]
Minimal, as this would only remove mounting /dev/pts a second time and is not introducing any extra functionality.
summary: |
- Dropbear's init scripts mount /dev/pts a second time + Dropbear's initramfs scripts mount /dev/pts a second time |
Changed in dropbear (Debian): | |
status: | Unknown → New |
Changed in dropbear (Ubuntu Precise): | |
status: | New → In Progress |
assignee: | nobody → Chris J Arges (christopherarges) |
Changed in dropbear (Ubuntu Precise): | |
milestone: | none → ubuntu-12.04.1 |
description: | updated |
Changed in dropbear (Debian): | |
status: | New → Fix Released |
Changed in dropbear (Debian): | |
status: | Fix Released → New |
Changed in dropbear (Debian): | |
status: | New → Fix Released |
This patch would change the debian/ initramfs/ premount- devpts script to first check if /dev/pts is already mounted. If it is, then we exit the script.