James Morris
f3a5c54701
Merge branch 'master' into next
Conflicts:
fs/cifs/misc.c
Merge to resolve above, per the patch below.
Signed-off-by: James Morris <jmorris@namei.org>
diff --cc fs/cifs/misc.c
index ec36410,addd1dc..0000000
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@@ -347,13 -338,13 +338,13 @@@ header_assemble(struct smb_hdr *buffer
/* BB Add support for establishing new tCon and SMB Session */
/* with userid/password pairs found on the smb session */
/* for other target tcp/ip addresses BB */
- if (current->fsuid != treeCon->ses->linux_uid) {
+ if (current_fsuid() != treeCon->ses->linux_uid) {
cFYI(1, ("Multiuser mode and UID "
"did not match tcon uid"));
- read_lock(&GlobalSMBSeslock);
- list_for_each(temp_item, &GlobalSMBSessionList) {
- ses = list_entry(temp_item, struct cifsSesInfo, cifsSessionList);
+ read_lock(&cifs_tcp_ses_lock);
+ list_for_each(temp_item, &treeCon->ses->server->smb_ses_list) {
+ ses = list_entry(temp_item, struct cifsSesInfo, smb_ses_list);
- if (ses->linux_uid == current->fsuid) {
+ if (ses->linux_uid == current_fsuid()) {
if (ses->server == treeCon->ses->server) {
cFYI(1, ("found matching uid substitute right smb_uid"));
buffer->Uid = ses->Suid;
2008-11-18 18:52:37 +11:00
..
2008-11-14 10:38:44 +11:00
2008-10-13 10:10:37 -07:00
2008-11-14 10:38:45 +11:00
2008-10-23 05:13:21 -04:00
2008-11-14 10:38:45 +11:00
2008-11-14 11:29:12 +11:00
2008-10-16 11:21:46 -07:00
2008-11-14 10:38:47 +11:00
2008-11-18 18:52:37 +11:00
2008-11-14 10:39:25 +11:00
2008-10-23 05:12:52 -04:00
2008-08-20 15:40:32 -07:00
2008-10-13 09:47:43 +11:00
2008-11-14 10:38:49 +11:00
2008-11-13 13:22:34 -06:00
2008-11-14 10:39:22 +11:00
2008-10-23 05:13:01 -04:00
2008-11-14 10:39:22 +11:00
2008-11-14 10:38:50 +11:00
2008-11-14 11:29:12 +11:00
2008-11-14 11:29:12 +11:00
2008-11-14 11:29:12 +11:00
2008-04-29 08:06:00 -07:00
2008-11-14 10:39:19 +11:00
2008-11-14 10:38:53 +11:00
2008-11-14 10:38:54 +11:00
2008-11-14 10:38:54 +11:00
2008-10-21 07:47:06 -04:00
2008-11-14 10:38:55 +11:00
2008-11-14 10:39:25 +11:00
2008-11-14 10:39:18 +11:00
2008-10-23 05:13:01 -04:00
2008-11-06 22:37:59 -05:00
2008-11-06 22:38:07 -05:00
2008-11-06 15:43:13 -08:00
2008-11-14 10:38:56 +11:00
2008-10-30 17:19:30 -04:00
2008-11-14 10:38:57 +11:00
2008-11-14 10:38:58 +11:00
2008-10-28 15:21:40 -04:00
2006-10-20 10:26:41 -07:00
2008-11-14 11:29:12 +11:00
2008-10-17 02:38:36 +11:00
2008-10-23 05:13:01 -04:00
2008-11-14 11:29:12 +11:00
2008-11-14 10:38:59 +11:00
2008-10-23 05:13:21 -04:00
2008-10-21 07:49:06 -04:00
2008-11-18 18:52:37 +11:00
2008-07-26 12:00:07 -07:00
2008-11-14 10:39:00 +11:00
2008-11-14 10:39:01 +11:00
2008-07-30 14:30:34 -07:00
2008-11-14 10:39:18 +11:00
2008-10-23 05:13:21 -04:00
2008-11-14 10:39:02 +11:00
2008-11-14 10:39:03 +11:00
2008-11-14 10:39:03 +11:00
2008-11-14 10:39:04 +11:00
2008-11-14 11:29:12 +11:00
2008-07-26 20:53:40 -04:00
2008-11-14 10:39:05 +11:00
2008-11-14 10:39:05 +11:00
2008-07-26 20:53:14 -04:00
2008-11-14 10:39:24 +11:00
2008-11-14 10:39:24 +11:00
2008-11-14 10:39:24 +11:00
2008-10-16 11:21:38 -07:00
2008-11-14 10:39:24 +11:00
2008-10-16 11:21:38 -07:00
2008-10-16 11:21:38 -07:00
2008-11-14 10:39:24 +11:00
2008-10-09 08:56:21 +02:00
2008-10-09 08:57:05 +02:00
2008-11-06 08:41:56 +01:00
2008-10-20 08:52:32 -07:00
2008-10-23 05:12:59 -04:00
2008-01-30 13:31:46 +01:00
2008-07-25 10:53:34 -07:00
2008-11-14 10:39:24 +11:00
2008-10-23 05:17:12 -04:00
2008-02-14 21:17:09 -08:00
2008-10-16 11:21:32 -07:00
2008-05-01 13:08:16 -04:00
2008-11-14 10:39:05 +11:00
2008-04-29 08:06:05 -07:00
2008-07-24 10:47:29 -07:00
2008-10-26 12:09:49 -07:00
2008-11-14 10:39:24 +11:00
2008-11-14 10:39:19 +11:00
2008-10-21 07:47:06 -04:00
2008-11-14 10:39:25 +11:00
2008-08-01 11:25:23 -04:00
2008-10-23 14:27:09 +04:00
2008-10-16 11:21:32 -07:00
2007-07-17 12:00:03 -07:00
2008-08-15 08:35:44 -07:00
2008-11-14 10:39:05 +11:00
2008-11-15 12:26:44 -08:00
2008-11-14 10:39:24 +11:00
2008-10-12 11:44:37 -07:00
2008-11-14 10:39:19 +11:00
2008-10-23 05:13:26 -04:00
2008-10-20 08:52:39 -07:00
2008-10-30 11:38:45 -07:00
2008-11-14 10:39:05 +11:00
2008-11-06 15:41:20 -08:00
2008-04-15 19:35:41 -07:00
2008-10-16 11:21:32 -07:00
2008-11-14 10:39:05 +11:00
2008-11-14 11:29:12 +11:00
2008-11-14 10:39:22 +11:00
2006-09-30 20:52:31 +02:00
2008-11-14 10:39:23 +11:00
2008-11-14 10:39:05 +11:00
2008-04-23 00:05:09 -04:00
2008-04-23 00:05:09 -04:00
2008-11-14 10:39:05 +11:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-11-14 10:39:05 +11:00
2008-10-23 05:12:59 -04:00
2006-10-01 00:39:28 -07:00
2008-10-23 05:13:10 -04:00
2008-10-26 11:22:08 -07:00
2008-10-20 08:52:39 -07:00
2008-07-24 10:47:29 -07:00
2008-10-30 11:38:45 -07:00
2007-02-19 14:21:50 -08:00
2008-07-26 20:53:34 -04:00
2008-10-23 10:23:07 -07:00
2008-07-24 10:47:17 -07:00
2008-09-05 21:35:09 -07:00
2008-07-26 20:53:34 -04:00
2007-02-14 08:09:54 -08:00
2008-07-26 20:53:34 -04:00