mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cramfs is ro only, so honour this in inode->mode
@ 2001-01-08 13:17 Ingo Oeser
  2001-01-08 12:13 ` Shane Nay
  2001-01-08 17:12 ` Linus Torvalds
  0 siblings, 2 replies; 14+ messages in thread
From: Ingo Oeser @ 2001-01-08 13:17 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

Hi Linus,
hi all,

cramfs is a read-only fs. So we should honour that in inode->mode
to avoid confusion of programs.

My isofs shows this too, so I think I'm right deleting the write
permissions in the inode. May be we should change it in
mkcramfs (too).

I don't know what POSIX says about RO fs, but I can't find any
real sense in having W permissions for an RO fs.

The patch:
--- linux-2.4.0/fs/cramfs/inode.c.orig  Fri Dec 29 23:07:57 2000
+++ linux-2.4.0/fs/cramfs/inode.c       Mon Jan  8 13:04:37 2001
@@ -37,7 +37,7 @@
        struct inode * inode = new_inode(sb);

        if (inode) {
-               inode->i_mode = cramfs_inode->mode;
+               inode->i_mode = cramfs_inode->mode & ~ S_IWUGO;
                inode->i_uid = cramfs_inode->uid;
                inode->i_size = cramfs_inode->size;
                inode->i_gid = cramfs_inode->gid;

Regards

Ingo Oeser
-- 
10.+11.03.2001 - 3. Chemnitzer LinuxTag <http://www.tu-chemnitz.de/linux/tag>
         <<<<<<<<<<<<       come and join the fun       >>>>>>>>>>>>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-01-09 22:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-08 13:17 [PATCH] cramfs is ro only, so honour this in inode->mode Ingo Oeser
2001-01-08 12:13 ` Shane Nay
2001-01-08 14:29   ` Ingo Oeser
2001-01-08 13:17     ` Shane Nay
2001-01-09 11:16       ` Albert D. Cahalan
2001-01-09 14:14         ` Doug McNaught
2001-01-09 22:03           ` Albert D. Cahalan
2001-01-09 22:33             ` Doug McNaught
2001-01-08 13:42     ` Alexander Viro
2001-01-08 16:59       ` Ingo Oeser
2001-01-08 17:37     ` Linus Torvalds
2001-01-09  1:25       ` Rusty Russell
2001-01-09  2:54         ` Linus Torvalds
2001-01-08 17:12 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome