Messages in this thread |  | | | Date | Sat, 31 Mar 2012 17:51:13 +0400 | | From | Vasiliy Kulikov <> | | Subject | Re: [PATCH] proc: fix mount -t proc -o AAA |
| |
On Fri, Mar 23, 2012 at 16:15 -0700, Andrew Morton wrote: > From: Vasiliy Kulikov <segoon@openwall.com> > Subject: proc: fix mount -t proc -o AAA > > The proc_parse_options() call from proc_mount() runs only once at boot > time. So on any later mount attempt, any mount options are ignored > because ->s_root is already initialized. > > As a consequence, "mount -o remount,<options>" will ignore the options.
s/-o remount,<options>/-o <options>/
> To fix this, parse the mount options unconditionally. > > Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
So, it should look like:
--- The proc_parse_options() call from proc_mount() runs only once at boot time. So on any later mount attempt, any mount options are ignored because ->s_root is already initialized. As a consequence, "mount -o <options>" will ignore the options. The only way to change mount options is "mount -o remount,<options>".
To fix this, parse the mount options unconditionally. --- Thanks,
-- Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments
|  |