• Miklos Szeredi's avatar
    init: fix read-write root mount · 10975933
    Miklos Szeredi authored
    If mount flags don't have MS_RDONLY, iso9660 returns EACCES without actually
    checking if it's an iso image.
    
    This tricks mount_block_root() into retrying with MS_RDONLY.  This results
    in a read-only root despite the "rw" boot parameter if the actual
    filesystem was checked after iso9660.
    
    I believe the behavior of iso9660 is okay, while that of mount_block_root()
    is not.  It should rather try all types without MS_RDONLY and only then
    retry with MS_RDONLY.
    
    This change also makes the code more robust against the case when EACCES is
    returned despite MS_RDONLY, which would've resulted in a lockup.
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    10975933
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
calibrate.c Loading commit data...
do_mounts.c Loading commit data...
do_mounts.h Loading commit data...
do_mounts_initrd.c Loading commit data...
do_mounts_md.c Loading commit data...
do_mounts_rd.c Loading commit data...
init_task.c Loading commit data...
initramfs.c Loading commit data...
main.c Loading commit data...
noinitramfs.c Loading commit data...
version.c Loading commit data...