xref: /netbsd-src/external/bsd/openpam/dist/doc/man/openpam_restore_cred.3 (revision 0d9d0fd8a30be9a1924e715bbcf67a4a83efd262)
1.\"	$NetBSD: openpam_restore_cred.3,v 1.9 2023/06/30 21:46:20 christos Exp $
2.\"
3.\" Generated from openpam_restore_cred.c by gendoc.pl
4.Dd June 27, 2023
5.Dt OPENPAM_RESTORE_CRED 3
6.Os
7.Sh NAME
8.Nm openpam_restore_cred
9.Nd restore credentials
10.Sh SYNOPSIS
11.In sys/types.h
12.In security/pam_appl.h
13.In security/openpam.h
14.Ft "int"
15.Fn openpam_restore_cred "pam_handle_t *pamh"
16.Sh DESCRIPTION
17The
18.Fn openpam_restore_cred
19function restores the credentials saved by
20.Xr openpam_borrow_cred 3 .
21.Sh RETURN VALUES
22The
23.Fn openpam_restore_cred
24function returns one of the following values:
25.Bl -tag -width 18n
26.It Bq Er PAM_SUCCESS
27Success.
28.It Bq Er PAM_NO_MODULE_DATA
29Module data not found.
30.It Bq Er PAM_SYSTEM_ERR
31System error.
32.El
33.Sh SEE ALSO
34.Xr setegid 2 ,
35.Xr seteuid 2 ,
36.Xr setgroups 2 ,
37.Xr openpam_borrow_cred 3 ,
38.Xr pam 3 ,
39.Xr pam_strerror 3
40.Sh STANDARDS
41The
42.Fn openpam_restore_cred
43function is an OpenPAM extension.
44.Sh AUTHORS
45The
46.Fn openpam_restore_cred
47function and this manual page were
48developed for the
49.Fx
50Project by ThinkSec AS and Network Associates Laboratories, the
51Security Research Division of Network Associates, Inc.\& under
52DARPA/SPAWAR contract N66001-01-C-8035
53.Pq Dq CBOSS ,
54as part of the DARPA CHATS research program.
55.Pp
56The OpenPAM library is maintained by
57.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .
58