Todd C. Miller
8e26312539
Convert to ANSI C function declarations
2010-06-14 12:30:21 -04:00
Todd C. Miller
426435c12c
If pam_open_session() fails, pass its status to pam_end.
2010-06-08 16:54:04 -04:00
Todd C. Miller
41436a7869
Fix OpenPAM detection for newer versions.
2010-06-02 10:33:02 -04:00
Todd C. Miller
7e6d1d1f7d
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.
2010-05-27 14:46:39 -04:00
Todd C. Miller
27be96c9cd
Add open/close session to sudo auth, only used by PAM.
...
This allows us to open (and close) the PAM session from sudoers.
2010-05-26 17:57:47 -04:00
Todd C. Miller
d5ae4c7d87
Kill __P in sudoers
2010-03-17 19:56:27 -04:00
Todd C. Miller
748ce55381
Rename sudo_conv to conversation to avoid a namespace conflict.
2010-03-14 20:47:56 -04:00
Todd C. Miller
9b0205846b
Initial bits of sudoers plugin; still needs work.
2010-03-14 19:58:47 -04:00
Todd C. Miller
e90fa482f9
Rework source layout in preparation for modular sudo.
2010-02-20 09:14:01 -05:00