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