ovl: Prevent rw remount when it should be ro mount
authorSeunghun Lee <waydi1@gmail.com>
Fri, 2 Jan 2015 17:26:49 +0000 (02:26 +0900)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 8 Jan 2015 13:47:21 +0000 (14:47 +0100)
Overlayfs should be mounted read-only when upper-fs is read-only or nonexistent.
But now it can be remounted read-write and this can cause kernel panic.
So we should prevent read-write remount when the above situation happens.

Signed-off-by: Seunghun Lee <waydi1@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>

No differences found