man > pam_sm_open_session(3)

PAM_SM_OPEN_SESSION(3)                    Linux-PAM Manual                    PAM_SM_OPEN_SESSION(3)

NAME
       pam_sm_open_session - PAM service function to start session management

SYNOPSIS
       #include <security/pam_modules.h>


       int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, const char **argv);

DESCRIPTION
       The pam_sm_open_session function is the service module's implementation of the
       pam_open_session(3) interface.

       This function is called to commence a session. The only valid value for flags is zero or:

       PAM_SILENT
           Do not emit any messages.

RETURN VALUES
       PAM_SESSION_ERR
           Cannot make/remove an entry for the specified session.

       PAM_SUCCESS
           The session was successfully started.

SEE ALSO
       pam(3), pam_open_session(3), pam_sm_close_session(3), pam_strerror(3), PAM(8)

Linux-PAM                                    05/07/2023                       PAM_SM_OPEN_SESSION(3)

Generated by phpman v4.11.2-35-gf98a251 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-10-07 13:13 @216.73.217.162
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!