linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] cramfs is ro only, so honour this in inode->mode
Date: Mon, 8 Jan 2001 14:17:02 +0100	[thread overview]
Message-ID: <20010108141702.I10035@nightmaster.csn.tu-chemnitz.de> (raw)

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/

             reply	other threads:[~2001-01-08 12:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-08 13:17 Ingo Oeser [this message]
2001-01-08 12:13 ` [PATCH] cramfs is ro only, so honour this in inode->mode 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010108141702.I10035@nightmaster.csn.tu-chemnitz.de \
    --to=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).