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_sm_close_session - PAM service function to terminate session management

Description

The pam_sm_close_session function is the service module's implementation of the pam_close_session(3) interface. This function is called to terminate a session. The only valid value for flags is zero or: PAM_SILENT Do not emit any messages.

Name

pam_sm_close_session - PAM service function to terminate session management

Return Values

PAM_SESSION_ERR Cannot make/remove an entry for the specified session. PAM_SUCCESS The session was successfully terminated.

See Also

pam(3), pam_close_session(3), pam_sm_close_session(3), pam_strerror(3), PAM(8) Linux-PAM 07/03/2025 PAM_SM_CLOSE_SESSION(3)

Synopsis

#include<security/pam_modules.h>intpam_sm_close_session(pam_handle_t*pamh,intflags,intargc,constchar**argv);

See Also