touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #00720
Re: [Bug 1039887] Re: fstab does not honor /proc mount options
On 25 March 2014 19:50, Simon Déziel <1039887@xxxxxxxxxxxxxxxxxx> wrote:
> Dimitri, any chance to see this implemented in Trusty?
>
So I took a stab at implementing this. To figure out whether or not a
remount is required, I had to start parsing all options specified in
the right order, which turned out to be non-trivial given that many
options are boolean singletons (e.g. ro/rw) thus I quite trivially end
up remounting things way too many times then needed.
However coming to think about it again, I wonder if a simple "if
already mounted and the mounts are specified in /etc/fstab assume a
remount is required" should suffice all cases. I'll try again to
implement that.
--
Regards,
Dimitri.
--
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:
Triaged
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