From: David Woodhouse <dwmw2@redhat.com>
To: David Vrabel <dvrabel@arcom.co.uk>
Cc: mtd@infradead.org, jffs-dev@axis.com
Subject: Re: Can change permissions regardless of ownership?
Date: Fri, 11 Aug 2000 10:04:36 +0100 [thread overview]
Message-ID: <10481.965984676@cygnus.co.uk> (raw)
In-Reply-To: <3993B83E.90CBABF2@arcom.co.uk>
dvrabel@arcom.co.uk said:
> When using JFFS it appears that you can change permissions and
> ownerships even for files you don't own.
Index: inode-v22.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs/inode-v22.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- inode-v22.c 2000/08/10 08:58:00 1.32
+++ inode-v22.c 2000/08/11 09:02:51 1.33
@@ -10,7 +10,7 @@
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
- * $Id: inode-v22.c,v 1.32 2000/08/10 08:58:00 dwmw2 Exp $
+ * $Id: inode-v22.c,v 1.33 2000/08/11 09:02:51 dwmw2 Exp $
*
* Ported to Linux 2.2.x by Sebastien Cote:
* Copyright (C) 2000 Matrox Electronic Systems
@@ -194,6 +194,9 @@
D1(printk("***jffs_notify_change(): file: \"%s\", ino: %u\n",
f->name, f->ino));
+
+ if ((res = inode_change_ok(inode, iattr)))
+ return res;
c = f->c;
fmc = c->fmc;
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
prev parent reply other threads:[~2000-08-11 9:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-11 8:24 Can change permissions regardless of ownership? David Vrabel
2000-08-11 9:04 ` David Woodhouse [this message]
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=10481.965984676@cygnus.co.uk \
--to=dwmw2@redhat.com \
--cc=dvrabel@arcom.co.uk \
--cc=jffs-dev@axis.com \
--cc=mtd@infradead.org \
/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