Background fsck is broken

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Dec 15 02:56:59 PST 2004


In message <20041215105326.GO25967 at 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 at 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.


More information about the freebsd-current mailing list