Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2004 11:56:57 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: Background fsck is broken 
Message-ID:  <43754.1103108217@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 15 Dec 2004 12:53:27 %2B0200." <20041215105326.GO25967@ip.net.ua> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20041215105326.GO25967@ip.net.ua>, Ruslan Ermilov writes:

>Are you saying it's not possible to downgrade the open to
>(r=1, w=0, e=0) when a file system is downgraded from R/W to R/O?

Yes: that would make a read-only mounted filesystem vulnerable to
overwriting through the /dev entry and we don't want that.

The problem is that we do not in the kernel know if we are in single
user mode or not.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43754.1103108217>