pam_setenv.3 revision 1.5 1 <<<<<<< pam_setenv.3
2 .\" $NetBSD: pam_setenv.3,v 1.5 2014/10/24 18:17:56 christos Exp $
3 .\"
4 =======
5 >>>>>>> 1.1.1.4
6 .\" Generated from pam_setenv.c by gendoc.pl
7 .\" Id: pam_setenv.c 648 2013-03-05 17:54:27Z des
8 .Dd September 12, 2014
9 .Dt PAM_SETENV 3
10 .Os
11 .Sh NAME
12 .Nm pam_setenv
13 .Nd mirrors setenv(3)
14 .Sh LIBRARY
15 .Lb libpam
16 .Sh SYNOPSIS
17 .In sys/types.h
18 .In security/pam_appl.h
19 .Ft "int"
20 .Fn pam_setenv "pam_handle_t *pamh" "const char *name" "const char *value" "int overwrite"
21 .Sh DESCRIPTION
22 The
23 .Fn pam_setenv
24 function sets an environment variable.
25 Its semantics are similar to those of
26 .Xr setenv 3 ,
27 but it modifies the PAM
28 context's environment list instead of the application's.
29 .Sh RETURN VALUES
30 The
31 .Fn pam_setenv
32 function returns one of the following values:
33 .Bl -tag -width 18n
34 .It Bq Er PAM_BUF_ERR
35 Memory buffer error.
36 .It Bq Er PAM_SYSTEM_ERR
37 System error.
38 .El
39 .Sh SEE ALSO
40 .Xr pam 3 ,
41 .Xr pam_getenv 3 ,
42 .Xr pam_getenvlist 3 ,
43 .Xr pam_putenv 3 ,
44 .Xr pam_strerror 3 ,
45 .Xr setenv 3
46 .Sh STANDARDS
47 The
48 .Fn pam_setenv
49 function is an OpenPAM extension.
50 .Sh AUTHORS
51 The
52 .Fn pam_setenv
53 function and this manual page were
54 developed for the
55 .Fx
56 Project by ThinkSec AS and Network Associates Laboratories, the
57 Security Research Division of Network Associates, Inc.\& under
58 DARPA/SPAWAR contract N66001-01-C-8035
59 .Pq Dq CBOSS ,
60 as part of the DARPA CHATS research program.
61 .Pp
62 The OpenPAM library is maintained by
63 .An Dag-Erling Sm\(/orgrav Aq des (a] des.no .
64