]> granicus.if.org Git - sudo/commit
Add init_session function to struct policy_plugin that gets called
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 27 May 2010 18:46:39 +0000 (14:46 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 27 May 2010 18:46:39 +0000 (14:46 -0400)
commit7e6d1d1f7d02f19906729f0d202e96c733181393
treee0209fcc28c49ac0ee274a0671b8c961470f5249
parent27be96c9cd766e15d41d51a5f0c805be857147bf
Add init_session function to struct policy_plugin that gets called
before the uid/gid/etc changes.  A struct passwd pointer is passed in,which may be NULL if the user does not exist in the passwd database.The sudoers module uses init_session to open the pam session as needed.
include/sudo_plugin.h
plugins/sudoers/auth/pam.c
plugins/sudoers/auth/sudo_auth.c
plugins/sudoers/sudoers.c
plugins/sudoers/sudoers.h
src/script.c
src/sudo.c