pam_open_session, pam_close_session — perform PAM session creation and termination operations
[ flag ... ] file ...
[ library ... ]
int pam_open_session(pam_handle_t *pamh,
int pam_close_session(pam_handle_t *pamh,
is called after a user has been successfully authenticated (refer to
and is used to notify the session modules that a new session
has been initiated. All programs that use the
library should invoke
when beginning a new session.
Upon termination of this activity,
should be invoked to inform
session has terminated.
is an authentication handle obtained by a prior call to
The following flag may be set in the
The session service should not generate any messages.
for information on thread-safety of PAM interfaces.
Upon successful completion,
is returned. In addition to the
return values defined in
the following value may be returned on error:
Can not make/remove an entry for the specified session.