← Back to team overview

touch-packages team mailing list archive

[Bug 1039887] Re: fstab does not honor /proc mount options

 

So in 15.04 Vivid, systemd is used by default which has a remount
service for all entries listed in /etc/fstab. It's a simple solution and
works good enough.

A similar thing can be implemented in mountall as well. My previous
attempt at intelligently parsing all the options to detect whether a
remount is needed is complex, due to all the options that could be used
(some negating others, or ignored by kernel).

** Also affects: mountall (Ubuntu Vivid)
   Importance: Medium
     Assignee: Dimitri John Ledkov (xnox)
       Status: Triaged

** Also affects: mountall (Ubuntu Lucid)
   Importance: Undecided
       Status: New

** Also affects: mountall (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Also affects: mountall (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Also affects: mountall (Ubuntu Utopic)
   Importance: Undecided
       Status: New

** Changed in: mountall (Ubuntu Vivid)
       Status: Triaged => Fix Released

** Changed in: mountall (Ubuntu Utopic)
       Status: New => Confirmed

** Changed in: mountall (Ubuntu Trusty)
       Status: New => Confirmed

** Changed in: mountall (Ubuntu Precise)
       Status: New => Confirmed

** Changed in: mountall (Ubuntu Lucid)
       Status: New => Confirmed

** Changed in: mountall (Ubuntu Vivid)
     Assignee: Dimitri John Ledkov (xnox) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/1039887

Title:
  fstab does not honor /proc mount options

Status in mountall package in Ubuntu:
  Fix Released
Status in mountall source package in Lucid:
  Confirmed
Status in mountall source package in Precise:
  Confirmed
Status in mountall source package in Trusty:
  Confirmed
Status in mountall source package in Utopic:
  Confirmed
Status in mountall source package in Vivid:
  Fix Released

Bug description:
  Passing mount options (here: "hidepid=2") for /proc via /etc/fstab
  does not seem to work:

  $ grep /proc /etc/fstab /etc/mtab /proc/mounts 
  /etc/fstab:proc                   /proc proc  nodev,noexec,nosuid,hidepid=2 0  0
  /etc/mtab:proc                   /proc proc  rw,noexec,nosuid,nodev 0 0
  /proc/mounts:proc           /proc proc   rw,nosuid,nodev,noexec,relatime 0 0

  Also, /etc/mtab and /proc/mounts are out of sync - are there plans to
  link /etc/mtab against /proc/mounts? (Note: I'm not particularly in
  favor of bug 906293, propsing yet another file to the mix).

  The system is a fully patched Ubuntu 12.04.1 LTS (i686) in an Amazon
  EC2 virtual machine.

  Workaround: add the following line to /etc/rc.local:

     mount -o remount,hidepid=2 /proc

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