Documentation
¶
Overview ¶
Package pam contains all the functionality for interfacing with Linux Pluggable Authentication Modules (PAM). Currently, all this package does is check the validity of a user's login passphrase. See http://www.linux-pam.org/Linux-PAM-html/ for more information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrPamInternal = util.SystemError("internal pam error")
)
Global state is needed for the PAM callback, so we guard this function with a lock. tokenToCheck is only ever non-nil when loginLock is held.
Functions ¶
func IsUserLoginToken ¶
IsUserLoginToken returns true if the presented token is the user's login key, false if it is not their login key, and an error if this cannot be determined. Note that unless the currently running process is root, this check will only work for the user running this process.
Types ¶
This section is empty.