[lkml]   [2002]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: problems with changing UID/GID

--On Wednesday, August 28, 2002 12:09:03 AM +0200 Trond Myklebust
<> wrote:

> FYI a BSD ucred is basically a structure of the form
> struct ucred {
> int counter; /* Reference counter */
> uid_t uid; /* task->fsuid */
> gid_t gid; /* task->fsgid */
> int ngroups; /* task->ngroups */
> gid_t *groups; /* task->groups */
> };

Shouldn't the Linux cred structure include the capabilities, as well? What
about places that want to see both uid and euid? Shouldn't euid/egid also
be in the structure? I realize that for file operations they're not
strictly necessary, but we should make the structure useful across all
parts of the kernel that want to see credentials.

BTW, you've convinced me that your approach is the right way to go. I'll
make another stab at CLONE_CRED after the VFS changes are made, which will
make it a 2.7 item, I'm sure.

Dave McCracken

Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059 T/L 678-3059

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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