Trond Myklebust
65e4308d25
[PATCH] NFS: Ensure we always update inode->i_mode when doing O_EXCL creates
...
When the client performs an exclusive create and opens the file for writing,
a Netapp filer will first create the file using the mode 01777. It does this
since an NFSv3/v4 exclusive create cannot immediately set the mode bits.
The 01777 mode then gets put into the inode->i_mode. After the file creation
is successful, we then do a setattr to change the mode to the correct value
(as per the NFS spec).
The problem is that nfs_refresh_inode() no longer updates inode->i_mode, so
the latter retains the 01777 mode. A bit later, the VFS notices this, and calls
remove_suid(). This of course now resets the file mode to inode->i_mode & 0777.
Hey presto, the file mode on the server is now magically changed to 0777. Duh...
Fixes http://bugzilla.linux-nfs.org/show_bug.cgi?id=32
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-16 09:30:58 -07:00
..
2005-06-28 21:20:31 -07:00
2005-06-22 16:07:42 -04:00
2005-07-07 16:50:16 +02:00
2005-07-26 15:39:28 -07:00
2005-07-07 18:24:11 -07:00
2005-08-04 13:00:54 -07:00
2005-08-16 08:52:11 -07:00
2005-07-22 14:43:52 -07:00
2005-06-25 16:25:02 -07:00
2005-07-29 23:31:17 -04:00
2005-06-21 19:07:41 -07:00
2005-06-26 15:28:10 -07:00
2005-07-10 19:29:45 -07:00
2005-06-21 19:07:36 -07:00
2005-06-23 09:45:26 -07:00
2005-06-27 14:33:29 -07:00
2005-08-05 13:43:16 -07:00
2005-06-25 16:24:52 -07:00
2005-07-07 18:23:45 -07:00
2005-07-10 15:45:11 -07:00
2005-06-27 15:11:48 -07:00
2005-07-04 13:23:45 -07:00
2005-06-25 16:24:30 -07:00
2005-07-07 18:23:43 -07:00
2005-06-25 16:24:53 -07:00
2005-07-06 13:53:29 -07:00
2005-08-01 21:37:59 -07:00
2005-07-12 17:21:56 -04:00
2005-06-25 16:24:24 -07:00
2005-06-24 00:05:19 -07:00
2005-06-24 00:05:19 -07:00
2005-06-27 14:33:29 -07:00
2005-07-12 12:08:43 -07:00
2005-06-24 00:06:41 -07:00
2005-07-12 16:01:01 -07:00
2005-06-24 00:05:20 -07:00
2005-07-13 11:25:24 -07:00
2005-06-21 19:07:41 -07:00
2005-06-23 09:45:28 -07:00
2005-07-12 12:08:43 -07:00
2005-06-21 19:07:41 -07:00
2005-07-27 16:26:06 -07:00
2005-06-21 18:46:23 -07:00
2005-08-15 09:50:31 -07:00
2005-07-27 16:26:08 -07:00
2005-06-21 18:46:18 -07:00
2005-06-23 09:45:19 -07:00
2005-07-07 18:23:46 -07:00
2005-07-12 16:01:03 -07:00
2005-07-12 12:08:43 -07:00
2005-06-25 16:24:53 -07:00
2005-06-21 21:52:05 -07:00
2005-06-28 21:20:32 -07:00
2005-06-21 21:52:06 -07:00
2005-06-21 21:51:49 -07:00
2005-06-21 21:51:48 -07:00
2005-06-24 00:05:29 -07:00
2005-06-24 00:05:29 -07:00
2005-08-09 20:21:31 -07:00
2005-06-26 17:54:11 -04:00
2005-07-05 15:03:46 -07:00
2005-07-08 17:38:07 -07:00
2005-06-28 15:46:24 -07:00
2005-06-27 14:33:29 -07:00
2005-06-25 16:24:30 -07:00
2005-08-15 09:50:31 -07:00
2005-06-30 00:50:38 -05:00
2005-06-21 18:46:32 -07:00
2005-07-07 18:23:37 -07:00
2005-06-24 00:05:23 -07:00
2005-06-28 21:20:35 -07:00
2005-06-25 16:24:45 -07:00
2005-06-25 16:24:55 -07:00
2005-06-24 00:05:19 -07:00
2005-06-24 00:05:19 -07:00
2005-06-24 00:05:19 -07:00
2005-06-24 00:05:18 -07:00
2005-07-05 19:19:00 -07:00
2005-06-25 16:24:38 -07:00
2005-06-23 09:45:18 -07:00
2005-07-27 16:26:07 -07:00
2005-06-23 09:45:09 -07:00
2005-08-03 09:12:05 -07:00
2005-06-23 09:45:05 -07:00
2005-07-06 12:55:20 -07:00
2005-06-24 00:06:40 -07:00
2005-07-12 16:00:58 -07:00
2005-07-07 18:23:51 -07:00
2005-06-23 20:12:48 -07:00
2005-08-08 13:48:02 -07:00
2005-08-11 19:27:43 -07:00
2005-06-24 00:06:28 -07:00
2005-06-22 16:07:42 -04:00
2005-06-22 16:07:24 -04:00
2005-08-16 09:30:58 -07:00
2005-06-22 16:07:24 -04:00
2005-06-22 16:07:39 -04:00
2005-06-22 16:07:24 -04:00
2005-06-22 16:07:23 -04:00
2005-06-24 00:06:32 -07:00
2005-06-23 09:45:04 -07:00
2005-06-25 16:25:03 -07:00
2005-06-21 18:46:17 -07:00
2005-07-27 16:25:51 -07:00
2005-08-08 18:46:09 -07:00
2005-06-28 12:56:45 -07:00
2005-06-28 12:56:45 -07:00
2005-06-23 09:45:30 -07:00
2005-07-12 17:21:56 -04:00
2005-06-27 15:11:43 -07:00
2005-06-23 09:45:33 -07:00
2005-06-25 16:24:53 -07:00
2005-06-24 14:14:24 -07:00
2005-06-24 14:14:24 -07:00
2005-06-24 00:05:19 -07:00
2005-06-23 09:45:20 -07:00
2005-07-26 14:35:41 -07:00
2005-07-12 20:21:28 -07:00
2005-07-12 20:21:28 -07:00
2005-07-12 20:21:28 -07:00
2005-07-12 20:21:28 -07:00
2005-07-12 20:21:28 -07:00
2005-06-24 00:06:41 -07:00
2005-06-28 12:56:45 -07:00
2005-07-12 20:38:38 -07:00
2005-06-27 15:11:44 -07:00
2005-06-27 11:12:54 +01:00
2005-07-27 16:26:09 -07:00
2005-07-16 09:30:53 +01:00
2005-07-16 09:59:00 +01:00
2005-08-11 16:05:50 -07:00
2005-07-27 16:25:47 -07:00
2005-07-28 10:34:47 -07:00
2005-07-07 18:23:46 -07:00
2005-06-25 16:24:32 -07:00
2005-08-07 10:00:38 -07:00
2005-07-07 18:23:37 -07:00
2005-07-27 16:26:04 -07:00
2005-06-23 12:21:28 -07:00
2005-07-05 15:24:38 -07:00
2005-06-23 20:59:16 -07:00
2005-06-23 20:49:30 -07:00
2005-06-23 09:45:16 -07:00
2005-06-25 16:24:42 -07:00
2005-06-23 09:45:35 -07:00
2005-06-30 00:48:14 -05:00
2005-07-12 11:52:57 -07:00
2005-06-28 21:20:32 -07:00
2005-07-12 11:52:56 -07:00
2005-06-30 00:49:08 -05:00
2005-06-27 14:43:42 -07:00
2005-07-12 11:52:56 -07:00
2005-06-28 21:20:36 -07:00
2005-06-23 09:45:34 -07:00
2005-07-12 12:08:43 -07:00
2005-07-27 16:25:54 -07:00
2005-06-28 21:20:31 -07:00
2005-06-22 22:16:17 -07:00
2005-08-06 09:39:57 -07:00