#include <security/pam_modules.h>
int pam_sm_open_session(
)
pam_handle_t *pamh
int flags
int argc
const char **argv
The pam_sm_open_session function is the service module's implementation of the pam_open_session(3) interface.
pam_sm_open_session
This function is called to commence a session. The only valid value for flags is zero or:
flags
Do not emit any messages.
Cannot make/remove an entry for the specified session.
The session was successfully started.
int pam_sm_close_session(
The pam_sm_close_session function is the service module's implementation of the pam_close_session(3) interface.
pam_sm_close_session
This function is called to terminate a session. The only valid value for flags is zero or:
The session was successfully terminated.