On this page
3.4. Session management
#include <security/pam_modules.h>
int pam_sm_open_session( |
pamh, | |
| flags, | ||
| argc, | ||
argv); |
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.
This function is called to commence a session. The only valid value for flags is zero or:
- PAM_SILENT
-
Do not emit any messages.
#include <security/pam_modules.h>
int pam_sm_close_session( |
pamh, | |
| flags, | ||
| argc, | ||
argv); |
pam_handle_t *pamh; int flags; int argc; const char **argv;
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.