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       #include <security/pam_modules.h>
11
12       int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc,
13                                const char **argv);
14

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

33       pam(3), pam_close_session(3), pam_sm_close_session(3), pam_strerror(3),
34       PAM(8)
35
36
37
38Linux-PAM Manual                  11/25/2020           PAM_SM_CLOSE_SESSION(3)
Impressum