* Can change permissions regardless of ownership?
@ 2000-08-11 8:24 David Vrabel
2000-08-11 9:04 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: David Vrabel @ 2000-08-11 8:24 UTC (permalink / raw)
To: mtd, jffs
Hi,
When using JFFS it appears that you can change permissions and
ownerships even for files you don't own.
David Vrabel
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can change permissions regardless of ownership?
2000-08-11 8:24 Can change permissions regardless of ownership? David Vrabel
@ 2000-08-11 9:04 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2000-08-11 9:04 UTC (permalink / raw)
To: David Vrabel; +Cc: mtd, jffs-dev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-08-11 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-11 8:24 Can change permissions regardless of ownership? David Vrabel
2000-08-11 9:04 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox