pam_sm_open_session 3 Linux-PAM Manual pam_sm_open_session PAM service function to start session management #define PAM_SM_SESSION #include <security/pam_modules.h> PAM_EXTERN 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_session3 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 pam3 , pam_open_session3 , pam_sm_close_session3 , pam_strerror3 , PAM8