n class="citerefentry">syslog(3).
Causes the session keyring of the invoking process to be replaced unconditionally.
Causes the session keyring of the invoking process to be revoked when the invoking process exits if the session keyring was created for this process in the first place.
This module will usually return this value
Authentication failure.
Memory buffer error.
The return value should be ignored by PAM dispatch.
Cannot determine the user name.
This module will return this value if its arguments are invalid or if a system error such as ENOMEM occurs.
User not known.
Add this line to your login entries to start each login session with its own session keyring:
session required pam_keyinit.so
This will prevent keys from one session leaking into another session for the same user.