1 .\" Generated from openpam_borrow_cred.c by gendoc.pl
2 .\" $OpenPAM: openpam_borrow_cred.c 938 2017-04-30 21:34:42Z des $
4 .Dt OPENPAM_BORROW_CRED 3
7 .Nm openpam_borrow_cred
8 .Nd temporarily borrow user credentials
11 .In security/pam_appl.h
12 .In security/openpam.h
14 .Fn openpam_borrow_cred "pam_handle_t *pamh" "const struct passwd *pwd"
17 .Fn openpam_borrow_cred
18 function saves the current credentials and
19 switches to those of the user specified by its
22 The affected credentials are the effective UID, the effective GID, and
23 the group access list.
24 The original credentials can be restored using
25 .Xr openpam_restore_cred 3 .
29 .Fn openpam_borrow_cred
30 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 Mt des@des.no .