diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2014-01-08 15:53:30 -0800 |
---|---|---|
committer | Steve Langasek <steve.langasek@canonical.com> | 2014-01-10 00:08:18 -0800 |
commit | 5825450540e6620ac331c64345b42fdcbb1d6e87 (patch) | |
tree | f0a6560b586928060b254a8a049b1a3a46ee1ecf /modules/pam_namespace/pam_namespace.c | |
parent | 2a5d231074efd71281a8d722519b69fda0748a7e (diff) | |
download | pam-5825450540e6620ac331c64345b42fdcbb1d6e87.tar.gz pam-5825450540e6620ac331c64345b42fdcbb1d6e87.tar.bz2 pam-5825450540e6620ac331c64345b42fdcbb1d6e87.zip |
pam_loginuid: return PAM_IGNORE when /proc/self/loginuid does not exist
When /proc/self/loginuid does not exist, return PAM_IGNORE instead of
PAM_SUCCESS, so that we can distinguish between "loginuid set
successfully" and "loginuid not set, but this is expected".
Suggested by Steve Langasek.
* modules/pam_loginuid/pam_loginuid.c (set_loginuid): Change return
code semantics: return PAM_SUCCESS on success, PAM_IGNORE when loginuid
does not exist, PAM_SESSION_ERR in case of any other error.
(_pam_loginuid): Forward the PAM error code returned by set_loginuid.
Diffstat (limited to 'modules/pam_namespace/pam_namespace.c')
0 files changed, 0 insertions, 0 deletions