logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pam_misc_setenv - BSD like PAM environment variable setting

Description

This function performs a task equivalent to pam_putenv(3), its syntax is, however, more like the BSD style function; setenv(). The name and value are concatenated with an '=' to form a name=value and passed to pam_putenv(). If, however, the PAM variable is already set, the replacement will only be applied if the last argument, readonly, is zero.

Name

pam_misc_setenv - BSD like PAM environment variable setting

See Also

pam_putenv(3), pam(7)

Standards

The pam_misc_setenv function is part of the libpam_misc Library and not defined in any standard. Linux-PAM 07/03/2025 PAM_MISC_SETENV(3)

Synopsis

#include<security/pam_misc.h>intpam_misc_setenv(pam_handle_t*pamh,constchar*name,constchar*value,intreadonly);

See Also