[Bug 933903] Re: Dropbear's initramfs scripts mount /dev/pts a second time

Scott Kitterman ubuntu at kitterman.com
Tue Jun 19 03:28:58 UTC 2012


Hello Mike, or anyone else affected,

Accepted dropbear into precise-proposed. The package will build now and
be available in a few hours. Please help us by testing this new package.
See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.  If this package fixes the bug for you
please change the bug tag from verification-needed to verification-done.
If it does not, change the tag to verification-failed.  In either case
details of your testing will help us make a better decision.  Further
information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance!

** Changed in: dropbear (Ubuntu Precise)
       Status: In Progress => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/933903

Title:
  Dropbear's initramfs scripts mount /dev/pts a second time

Status in “dropbear” package in Ubuntu:
  Fix Released
Status in “dropbear” source package in Precise:
  Fix Committed
Status in “dropbear” package in Debian:
  New

Bug description:
  [Impact]
  The dropbear package includes an initramfs script, /usr/share/initramfs-tools/scripts/init-premount/devpts, that mounts devpts a second time, after it's already been mounted by /usr/share/initramfs-tools/init, provided by initramfs-tools.

  [Test Case]
  Line 23 in /usr/share/initramfs-tools/scripts/init-premount/devpts from dropbear:
  mount -t devpts none /dev/pts

  Line 25 in /usr/share/initramfs-tools/init from initramfs-tools:
  mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true

  The second mount from dropbear fails since /dev/pts is already
  mounted, but it does change the mount options:

  mwharris at mwharris-test:~$ grep pts /proc/mounts
  devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0

  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/initramfs-
  tools/scripts/init-premount/devpts from dropbear

  I'm on Precise using dropbear_2011.54-1 and initramfs-
  tools_0.99ubuntu10

  [Regression Potential]
  Minimal, as this would only remove mounting /dev/pts a second time and is not introducing any extra functionality.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/933903/+subscriptions



More information about the Ubuntu-sponsors mailing list