diff options
author | Tomas Mraz <tm@t8m.info> | 2008-01-04 17:46:45 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2008-01-04 17:46:45 +0000 |
commit | c8c84e2bf94a4172ad104212e0cd739dbf12eb49 (patch) | |
tree | 5c1603c33f36e90308db8d0cb7cb21570774730d /modules/pam_unix/bigcrypt_main.c | |
parent | c6912ac61ece224b03cf81499cf6d76add564c8a (diff) | |
download | linux-pam-git-pam_unix_ref_branch.tar.gz |
Relevant BUGIDs:pam_unix_ref_branch
Purpose of commit: new feature
Commit summary:
---------------
* modules/pam_unix/Makefile.am: Add unix_update helper.
* modules/pam_unix/pam_unix_passwd.c: Move functions i64c(),
crypt_md5_wrapper(), save_old_password(), _update_passwd() and
_update_shadow() to passverify.c file. Rename _unix_run_shadow_binary()
to _unix_run_update_binary(), which also verifies old password and
does all writing.
(_do_setpass, pam_sm_chauthtok): lckpwdf()->lock_pwdf(), the same for unlock.
Call _unix_run_update_binary() appropriately.
_update_passwd()->unix_update_passwd(), the same for shadow.
* modules/pam_unix/passverify.c: Add new functions moved from
pam_unix_passwd.c and unix_chkpwd.c.
* modules/pam_unix/passverify.h: Likewise.
* modules/pam_unix/unix_chkpwd.c: Remove SELinux checks. Move
su_sighandler(), setup_signals(), getuidname() to passverify.c.
(main): Remove 'shadow' option. Refactor out read_passwords() and
call it. More strict checking how the binary is called.
* modules/pam_unix/unix_update.c: New helper binary - non-setuid,
called from SELinux confined apps only.
Diffstat (limited to 'modules/pam_unix/bigcrypt_main.c')
0 files changed, 0 insertions, 0 deletions