lkml.org 
[lkml]   [1996]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: bugs in sys_set/get_groups and in_group_p
Date

Claus Heine was overheard whispering ...

# Now, the functions sys_get/setgroups() were changed (2.1.10 -> 2.1.11)
# to use copy_from/to_user() to get the entire list of supplementory groups
# in one step instead of copying the group ids one by one. It is easy to
# see that this breaks the functions.

I just discovered that this also exists in 2.0.23. I attempted to
apply the patch that Claus posted, but it didn't do any good. Just
messed up the output from "id":

nicholas@madi:...homes/nicholas > id
uid=100(nicholas) gid=0(root)
groups=0(root),65535,0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root),0(root)

Any help anyone?

N!
------------------------------------------------------------------------------
Nicholas J. Leon nicholas@binary9.net
"Elegance through Simplicity" http://www.binary9.net/nicholas

SF/F Reading Suggestion #2: Black Sun Rising


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