[sudo-commits] sudo changeset 7837:61cffa06f863
Todd C. Miller
Todd.Miller at courtesan.com
Thu Mar 8 11:36:13 EST 2012
changeset: 7837:61cffa06f863 in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/61cffa06f863
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed Mar 07 16:35:42 2012 -0500
Log Message:
Initial cut at a hooks implementation. The plugin can register
hooks for getenv, putenv, setenv and unsetenv. This makes it
possible for the plugin to trap changes to the environment made by
authentication methods such as PAM or BSD auth so that such changes
are reflected in the environment passed back to sudo for execve().
diffstat:
MANIFEST | 4 +-
aclocal.m4 | 18 +
common/sudo_debug.c | 1 +
compat/Makefile.in | 6 +-
compat/setenv.c | 83 ---------
compat/unsetenv.c | 76 --------
config.h.in | 3 +
configure | 62 ++++--
configure.in | 7 +-
include/sudo_debug.h | 1 +
include/sudo_plugin.h | 62 ++++++-
mkdep.pl | 2 +-
plugins/sudoers/auth/aix_auth.c | 2 +-
plugins/sudoers/env.c | 361 ++++++++++++++++++++++++++++++++-------
plugins/sudoers/ldap.c | 12 +-
plugins/sudoers/sudoers.c | 33 +++-
plugins/sudoers/sudoers.h | 7 +
src/Makefile.in | 22 ++-
src/env_hooks.c | 298 +++++++++++++++++++++++++++++++++
src/hooks.c | 274 ++++++++++++++++++++++++++++++
src/load_plugins.c | 10 +
src/sudo.c | 16 +-
src/sudo.h | 10 +
src/sudo_plugin_int.h | 2 +-
24 files changed, 1088 insertions(+), 284 deletions(-)
More information about the sudo-commits
mailing list