strerror
(3).
include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> #include <sys/uio.h> #include <errno.h> #include "machine.h" #include "cred.h"
acld
access control deamon.
extern int SendCred(int fd);
The peer process should be calling RecvCred on the other
end of fd
.
This is exploded under -u send.
#define CRED_TYPE ...
sys/socket.h
to define
either SCM_CREDENTIALS
or SCM_CREDS
.
This set which of (struct ucred) or (struct cmsgcred) is sent by
the kernel.
extern int RecvCred(int fd, CRED_TYPE *pCred);
fd
. The credentials presented (by the kernel)
are copied into the buffer provided.
See /usr/include/sys/socket.h for the definition of
CRED_TYPE
(on most systems).
This is exploded under -u recv.
extern void DumpCred(CRED_TYPE *pCred);
explode -s cred.h
explode -u test cred.c
more credtest.c
$Id: cred.html,v 1.9 2012/03/21 16:15:04 ksb Exp $