lkml.org 
[lkml]   [1999]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: AGP & non-root mmap calls: "lending" priviledges to a client
Date
From
Andi Kleen writes:
> SCM_CREDENTIALS is in newer BSD, but not in most other Unixes afaik.
> SCM_RIGHTS is available on most Unixes in slight variations.

In SysV, the I_RECVFD ioctl on a stream pipe gives you a
struct strrecvfd which includes not only your file descriptor but also
the effective uid and gid of the sending user. So the functionality of
SCM_CREDENTIALS and SCM_RIGHTS are merged but you can pass your
credentials by passing a dummy file descriptor.

--Malcolm

--
Malcolm Beattie <mbeattie@sable.ox.ac.uk>
Unix Systems Programmer
Oxford University Computing Services

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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