lkml.org 
[lkml]   [1998]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectNFS & NGROUPS (revisited)
All,

My apologies for an earlier, misleading, patch. The real problem behind
my NFS client problems seems to be this:

--- linux/kernel/sys.c.orig Mon Mar 16 07:17:16 1998
+++ linux/kernel/sys.c Wed Mar 18 07:25:31 1998
@@ -721,6 +721,8 @@
return -EINVAL;
if(copy_from_user(current->groups, grouplist, gidsetsize * sizeof(gid_t)))
return -EFAULT;
+ if (gidsetsize < NGROUPS)
+ current->groups[gidsetsize] = NOGROUP;
current->ngroups = gidsetsize;
return 0;
}

The question is: Why wasn't the lack of a terminator for the task_struct
groups list causing more problems? The logic I inserted had existed in
the 2.0.x kernels.

Steve



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.715 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site