1 .\" Generated from openpam_borrow_cred.c by gendoc.pl
2 .\" $Id: openpam_borrow_cred.c 649 2013-03-05 17:58:33Z des $
4 .Dt OPENPAM_BORROW_CRED 3
7 .Nm openpam_borrow_cred
8 .Nd temporarily borrow user credentials
13 .In security/pam_appl.h
14 .In security/openpam.h
16 .Fn openpam_borrow_cred "pam_handle_t *pamh" "const struct passwd *pwd"
19 .Fn openpam_borrow_cred
20 function saves the current credentials and
21 switches to those of the user specified by its
24 The affected credentials are the effective UID, the effective GID, and
25 the group access list.
26 The original credentials can be restored using
27 .Xr openpam_restore_cred 3 .
31 .Fn openpam_borrow_cred
32 function returns one of the following values:
36 .It Bq Er PAM_PERM_DENIED
38 .It Bq Er PAM_SYSTEM_ERR
45 .Xr openpam_restore_cred 3 ,
50 .Fn openpam_borrow_cred
51 function is an OpenPAM extension.
54 .Fn openpam_borrow_cred
55 function and this manual page were
58 Project by ThinkSec AS and Network Associates Laboratories, the
59 Security Research Division of Network Associates, Inc.\& under
60 DARPA/SPAWAR contract N66001-01-C-8035
62 as part of the DARPA CHATS research program.
64 The OpenPAM library is maintained by
65 .An Dag-Erling Sm\(/orgrav Aq des@des.no .