2013-09-07 16:15:30 +00:00
|
|
|
.\" Generated from pam_setenv.c by gendoc.pl
|
2017-05-01 15:02:58 +00:00
|
|
|
.\" $OpenPAM: pam_setenv.c 938 2017-04-30 21:34:42Z des $
|
|
|
|
.Dd April 30, 2017
|
2002-02-23 01:22:51 +00:00
|
|
|
.Dt PAM_SETENV 3
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm pam_setenv
|
|
|
|
.Nd mirrors setenv(3)
|
|
|
|
.Sh SYNOPSIS
|
2003-01-06 16:07:51 +00:00
|
|
|
.In sys/types.h
|
2002-02-23 01:22:51 +00:00
|
|
|
.In security/pam_appl.h
|
2003-07-15 07:18:26 +00:00
|
|
|
.Ft "int"
|
2002-02-23 01:22:51 +00:00
|
|
|
.Fn pam_setenv "pam_handle_t *pamh" "const char *name" "const char *value" "int overwrite"
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2012-05-26 14:23:18 +00:00
|
|
|
.Fn pam_setenv
|
|
|
|
function sets an environment variable.
|
2002-02-23 01:24:02 +00:00
|
|
|
Its semantics are similar to those of
|
|
|
|
.Xr setenv 3 ,
|
|
|
|
but it modifies the PAM
|
|
|
|
context's environment list instead of the application's.
|
|
|
|
.Pp
|
2002-02-23 01:22:51 +00:00
|
|
|
.Sh RETURN VALUES
|
|
|
|
The
|
2012-05-26 14:23:18 +00:00
|
|
|
.Fn pam_setenv
|
2002-02-23 01:22:51 +00:00
|
|
|
function returns one of the following values:
|
2002-02-23 01:24:02 +00:00
|
|
|
.Bl -tag -width 18n
|
2017-05-01 15:02:58 +00:00
|
|
|
.It Bq Er PAM_SUCCESS
|
|
|
|
Success.
|
2002-02-23 01:24:02 +00:00
|
|
|
.It Bq Er PAM_BUF_ERR
|
|
|
|
Memory buffer error.
|
|
|
|
.It Bq Er PAM_SYSTEM_ERR
|
|
|
|
System error.
|
2002-02-23 01:22:51 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2002-02-23 01:24:02 +00:00
|
|
|
.Xr pam 3 ,
|
|
|
|
.Xr pam_getenv 3 ,
|
|
|
|
.Xr pam_getenvlist 3 ,
|
|
|
|
.Xr pam_putenv 3 ,
|
2002-02-23 01:22:51 +00:00
|
|
|
.Xr pam_strerror 3 ,
|
2002-02-23 01:24:02 +00:00
|
|
|
.Xr setenv 3
|
2002-02-23 01:22:51 +00:00
|
|
|
.Sh STANDARDS
|
2002-02-23 01:24:02 +00:00
|
|
|
The
|
2012-05-26 14:23:18 +00:00
|
|
|
.Fn pam_setenv
|
2002-02-23 01:24:02 +00:00
|
|
|
function is an OpenPAM extension.
|
2002-02-23 01:22:51 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
2012-05-26 14:23:18 +00:00
|
|
|
.Fn pam_setenv
|
|
|
|
function and this manual page were
|
|
|
|
developed for the
|
2003-07-15 07:18:26 +00:00
|
|
|
.Fx
|
2012-05-26 14:23:18 +00:00
|
|
|
Project by ThinkSec AS and Network Associates Laboratories, the
|
2005-06-17 14:39:09 +00:00
|
|
|
Security Research Division of Network Associates, Inc.\& under
|
2003-07-15 07:18:26 +00:00
|
|
|
DARPA/SPAWAR contract N66001-01-C-8035
|
2002-02-23 01:22:51 +00:00
|
|
|
.Pq Dq CBOSS ,
|
|
|
|
as part of the DARPA CHATS research program.
|
2013-09-07 16:15:30 +00:00
|
|
|
.Pp
|
|
|
|
The OpenPAM library is maintained by
|
2017-02-19 21:00:46 +00:00
|
|
|
.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .
|