[OpenAFS-devel] [CSL #307050] afs_xsetgroups32 patch i386_linux26

David Thompson thomas@cs.wisc.edu
Mon, 21 Aug 2006 10:57:30 -0500


Jeffrey Hutzelman wrote:
>
>I'm not sure what you think you're gaining from this over the current 
>implementation.  

I need the 2.4 kernel behavior of being able to join an existing pag using the 
setgroups() syscall.

As a bonus, I get rid of the annoyance of having my pag groups duplicated at 
the end of the group list.

>But, the reason you're losing is because grouplist is a 
>user-space address and you're treating it as if it were a kernel-space 
>address.  That works fine for memory models where all of the user process's 
>VM is mapped in kernel mode at the same addresses, but not for models where 
>that is not the case.

Thank you (and chas) very much.  Ah, the perils of being a novice kernel 
programmer...

Dave