Messages in this thread | | | Subject | Re: AGP & non-root mmap calls: "lending" priviledges to a client | Date | Mon, 19 Jul 1999 16:33:12 +0100 (BST) | From | Malcolm Beattie <> |
| |
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/
| |