NAME
|
cap – capabilities for setting the user id of processes |
SYNOPSIS
|
bind #¤ dir dir/caphash dir/capuse |
DESCRIPTION
This device enables a trusted process to create a capability that
another process may then use to change its user id. The intent
is to allow server processes, for example telnetd (see ipserv(8)),
to change their user id after having proved to a trusted process,
such as factotum(4), that they are indeed executing on
behalf of a user. A trusted process is one running with the user
id of the host owner (see /dev/hostowner in cons(3)).
|
SOURCE
|
/sys/src/9/port/devcap.c |
SEE ALSO
|
sechash(2) |
DIAGNOSTICS
|
Errors generated by reading and writing caphash and capuse can
be obtained using errstr(2). A read of caphash with a length of
less than 20 or a write to capuse that doesn't contain two @ characters
generates the error ``read or write too small''. A write to capuse
that has no matching hash generates the error ``invalid
capability''. |