]> Git Repo - linux.git/commit - fs/proc/root.c
proc: fix mount -t proc -o AAA
authorVasiliy Kulikov <[email protected]>
Thu, 5 Apr 2012 21:25:04 +0000 (14:25 -0700)
committerLinus Torvalds <[email protected]>
Thu, 5 Apr 2012 22:25:50 +0000 (15:25 -0700)
commit99663be772c827b8f5f594fe87eb4807be1994e5
treef1adffce3f6d10a90f5be8b86b96729ce8c5d23c
parent10bdfb5ef7e1a429a3de31e498942a8ae5749a46
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 <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.

Signed-off-by: Vasiliy Kulikov <[email protected]>
Reported-by: Arkadiusz Miskiewicz <[email protected]>
Tested-by: Arkadiusz Miskiewicz <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Valdis Kletnieks <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/proc/root.c
This page took 0.052441 seconds and 4 git commands to generate.