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

NAME

6       pam_sm_open_session - PAM service function to start session management
7

SYNOPSIS

9       #include <security/pam_modules.h>
10
11       int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc,
12                               const char **argv);
13

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

32       pam(3), pam_open_session(3), pam_sm_close_session(3), pam_strerror(3),
33       PAM(8)
34
35
36
37Linux-PAM                         05/07/2023            PAM_SM_OPEN_SESSION(3)
Impressum