Date: Tue, 17 May 2005 14:04:53 GMT From: Ronny lam <rlam@snow.nl> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/81161: Images mounted through mdconfig on a read-only fs can be modified Message-ID: <200505171404.j4HE4rBJ023308@www.freebsd.org> Resent-Message-ID: <200505171410.j4HEA2BV095346@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 81161 >Category: kern >Synopsis: Images mounted through mdconfig on a read-only fs can be modified >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 17 14:10:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ronny lam >Release: 5.4 >Organization: Snow B.V. >Environment: FreeBSD helix.kateri.demon.nl 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #2: Tue May 17 14:26:04 CEST 2005 root@helix.kateri.demon.nl:/usr/local/obj/usr/local/src/sys/HELIX i386 >Description: When mounting an image through mdconfig which resides on a read-only filesystem, it is possible to changes the md-filesystem and thus change the read-only underlying filesystem. This could be by design but looks like a problem to me. >How-To-Repeat: boot single-user, the root filesystem is readonly mdconfig -a -t vnode -f boot.flp mount /dev/md0 /mnt touch /mnt/hello ls /mnt mount, root filesystem is still read-only, /mnt is read-write umount /mnt mdconfig -d -u 0 mdconfig -a -t vnode -f boot.flp mount /dev/md0 /mnt ls /mnt >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505171404.j4HE4rBJ023308>