PAM_SM_OPEN_SESSION(3)

  .SH "NAME" pam_sm_open_session - PAM service function to start session management
  .SH "SYNOPSIS"

#include <security/pam_modules.h>

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

  .SH "DESCRIPTION"

    .PP The pam_sm_open_session function is the service module's implementation of the pam_open_session(3) interface.
    .PP This function is called to commence a session. The only valid value for flags is zero or:

      .PP PAM_SILENT

               Do not emit any messages.

          .RE

      .SH "RETURN VALUES"

          .PP PAM_SESSION_ERR

                  Cannot make/remove an entry for the specified session.

              .RE
              .PP PAM_SUCCESS

                       The session was successfully started.

                  .RE

              .SH "SEE ALSO"

                .PP pam(3), pam_open_session(3), pam_sm_close_session(3), pam_strerror(3), PAM(8)