satmp_init - register token-mapping daemon with kernel
int satmp_init (int fd, u_int generation);
satmp_init initializes the kernel interface to the token-mapping daemon.
fd is a file descriptor that references a socket, and generation is the
initial generation of the token-mapping database. The calling process
must have appropriate privilege. If _POSIX_CAP is in effect, appropriate
privilege includes CAP_NETWORK_MGT capability.
satmp_init will fail if one or more of the following are true:
[ENOPKG] Trusted Networking is not configured on this system.
[EPERM] The caller doesn't have CAP_NETWORK_MGT capability.
[EADDRINUSE] Another token-mapping daemon is currently running.
satmp_init returns 0 if successful. A return value of -1 indicates an
error and errno is set to indicate the error.
satmp_done(2), satmp_get_attr_reply(2), satmp_get_lrtok_reply(2),
Silicon Graphics, Inc.
PPPPaaaaggggeeee 1111 [ Back ]