1*0d9d0fd8Schristos.\" $NetBSD: pam_setenv.3,v 1.9 2023/06/30 21:46:20 christos Exp $ 244269bb5Schristos.\" 38fa0fefeSchristos.\" Generated from pam_setenv.c by gendoc.pl 4*0d9d0fd8Schristos.Dd June 27, 2023 544269bb5Schristos.Dt PAM_SETENV 3 644269bb5Schristos.Os 744269bb5Schristos.Sh NAME 844269bb5Schristos.Nm pam_setenv 944269bb5Schristos.Nd mirrors setenv(3) 1044269bb5Schristos.Sh SYNOPSIS 1144269bb5Schristos.In sys/types.h 1244269bb5Schristos.In security/pam_appl.h 1344269bb5Schristos.Ft "int" 1444269bb5Schristos.Fn pam_setenv "pam_handle_t *pamh" "const char *name" "const char *value" "int overwrite" 1544269bb5Schristos.Sh DESCRIPTION 1644269bb5SchristosThe 17e1b25b17Schristos.Fn pam_setenv 18e1b25b17Schristosfunction sets an environment variable. 1944269bb5SchristosIts semantics are similar to those of 2044269bb5Schristos.Xr setenv 3 , 2144269bb5Schristosbut it modifies the PAM 2244269bb5Schristoscontext's environment list instead of the application's. 2344269bb5Schristos.Sh RETURN VALUES 2444269bb5SchristosThe 25e1b25b17Schristos.Fn pam_setenv 2644269bb5Schristosfunction returns one of the following values: 2744269bb5Schristos.Bl -tag -width 18n 284cb4af11Schristos.It Bq Er PAM_SUCCESS 294cb4af11SchristosSuccess. 3044269bb5Schristos.It Bq Er PAM_BUF_ERR 3144269bb5SchristosMemory buffer error. 3244269bb5Schristos.It Bq Er PAM_SYSTEM_ERR 3344269bb5SchristosSystem error. 3444269bb5Schristos.El 3544269bb5Schristos.Sh SEE ALSO 3644269bb5Schristos.Xr pam 3 , 3744269bb5Schristos.Xr pam_getenv 3 , 3844269bb5Schristos.Xr pam_getenvlist 3 , 3944269bb5Schristos.Xr pam_putenv 3 , 4044269bb5Schristos.Xr pam_strerror 3 , 4144269bb5Schristos.Xr setenv 3 4244269bb5Schristos.Sh STANDARDS 4344269bb5SchristosThe 44e1b25b17Schristos.Fn pam_setenv 4544269bb5Schristosfunction is an OpenPAM extension. 4644269bb5Schristos.Sh AUTHORS 4744269bb5SchristosThe 48e1b25b17Schristos.Fn pam_setenv 49e1b25b17Schristosfunction and this manual page were 50e1b25b17Schristosdeveloped for the 5144269bb5Schristos.Fx 52e1b25b17SchristosProject by ThinkSec AS and Network Associates Laboratories, the 5344269bb5SchristosSecurity Research Division of Network Associates, Inc.\& under 5444269bb5SchristosDARPA/SPAWAR contract N66001-01-C-8035 5544269bb5Schristos.Pq Dq CBOSS , 5644269bb5Schristosas part of the DARPA CHATS research program. 578fa0fefeSchristos.Pp 588fa0fefeSchristosThe OpenPAM library is maintained by 594cb4af11Schristos.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no . 60