table of contents
PAM_PUTENV(3) | Linux-PAM Manual | PAM_PUTENV(3) |
NAME¶
pam_putenv - set or change PAM environment variable
SYNOPSIS¶
#include <security/pam_appl.h>
int pam_putenv(pam_handle_t *pamh, const char *name_value);
DESCRIPTION¶
The pam_putenv function is used to add or change the value of PAM environment variables as associated with the pamh handle.
The pamh argument is an authentication handle obtained by a prior call to pam_start(). The name_value argument is a single NUL terminated string of one of the following forms:
NAME=value of variable
NAME=
NAME
pam_putenv() operates on a copy of name_value, which means in contrast to putenv(3), the application is responsible for freeing the data.
RETURN VALUES¶
PAM_PERM_DENIED
PAM_BAD_ITEM
PAM_ABORT
PAM_BUF_ERR
PAM_SUCCESS
SEE ALSO¶
pam_start(3), pam_getenv(3), pam_getenvlist(3), pam_strerror(3), pam(7)
09/03/2021 | Linux-PAM Manual |