* Re: Readonly mounted ext2 filesystem partition changeable: Bug or Feature?
2003-08-09 10:12 Readonly mounted ext2 filesystem partition changeable: Bug or Feature? csg
@ 2003-08-08 10:23 ` P
0 siblings, 0 replies; 2+ messages in thread
From: P @ 2003-08-08 10:23 UTC (permalink / raw)
To: csg; +Cc: linux-kernel
csg wrote:
> [PLEASE copy any answer to this posting to
> chr@abelard.de
> Thanks.]
>
> Hello,
>
> Short: I have seen changes made to a readonly mounted ext2 filesystem by
> communicating with /sbin/init via /dev/initctl. This strange behaviour
> goes away while moving /dev into RAM by using DEVFS.
>
> In my opinion this is a bug. Or is it a feature?
A bug that is already fixed:
http://marc.theaimsgroup.com/?t=105414508000003&r=1&w=2
Pádraig.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Readonly mounted ext2 filesystem partition changeable: Bug or Feature?
@ 2003-08-09 10:12 csg
2003-08-08 10:23 ` P
0 siblings, 1 reply; 2+ messages in thread
From: csg @ 2003-08-09 10:12 UTC (permalink / raw)
To: linux-kernel
[PLEASE copy any answer to this posting to
chr@abelard.de
Thanks.]
Hello,
Short: I have seen changes made to a readonly mounted ext2 filesystem by
communicating with /sbin/init via /dev/initctl. This strange behaviour
goes away while moving /dev into RAM by using DEVFS.
In my opinion this is a bug. Or is it a feature?
**********************
Szenario:
System: Linux debian30 2.4.18-1-k6 #1 Fri Jun 6 23:55:12 EST 2003 i586 unknown
IDE disk
I have made 1 readonly ROOT-partition including /dev (and some symbolic links)
and 1 read-write VAR-partition (without exec permission).
Then I created MD5SUM over the entire readonly partition, put the checksum
along with a check-script on a (later) write-protected floppy. Now on every reboot the floppy will be mounted and the check-script compares the saved checksum with the one created on the fly over the current partition.
After rebooting or calling something like "init <new runlevel>" the partition
was found altered. "cmp" / "diff" in front to a reference pointed out the
change was made in mid of data region of the ext2-filesystem.
(Not in metedata, therefore no "mount-count"-problem; of course: no journal.)
The problem goes ahead if
- I do remove /dev/initctl
(Of course, the system is now no longer able to shutdown correctly
or to change the runlevel)
or
- I do switch to DEVFS which moves /dev and /dev/initctl to RAM.
I find this strange.
The expected behaviour would be to output an error message like
"Permission denied: Can not write to read-only filesystem".
So I think, it is a bug. But I'm not sure: May be it is a feature?
Thanks for your answer.
Christian Schmidt-Guetter
--
Christian Schmidt-Guetter
Email: chr@abelard.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-08 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-09 10:12 Readonly mounted ext2 filesystem partition changeable: Bug or Feature? csg
2003-08-08 10:23 ` P
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.