1PAM_SM_CLOSE_SESSION(3)        Linux-PAM Manual        PAM_SM_CLOSE_SESSION(3)
2
3
4

NAME

6       pam_sm_close_session - PAM service function to terminate session
7       management
8

SYNOPSIS

10       #define PAM_SM_SESSION
11
12       #include <security/pam_modules.h>
13
14       int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc,
15                                const char **argv);
16

DESCRIPTION

18       The pam_sm_close_session function is the service module's
19       implementation of the pam_close_session(3) interface.
20
21       This function is called to terminate a session. The only valid value
22       for flags is zero or:
23
24       PAM_SILENT
25           Do not emit any messages.
26

RETURN VALUES

28       PAM_SESSION_ERR
29           Cannot make/remove an entry for the specified session.
30
31       PAM_SUCCESS
32           The session was successfully terminated.
33

SEE ALSO

35       pam(3), pam_close_session(3), pam_sm_close_session(3), pam_strerror(3),
36       PAM(8)
37
38
39
40Linux-PAM Manual                  05/18/2017           PAM_SM_CLOSE_SESSION(3)
Impressum