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().
This commit is contained in:
@@ -94,7 +94,7 @@ sudo_aix_cleanup(struct passwd *pw, sudo_auth *auth)
|
||||
debug_decl(sudo_aix_cleanup, SUDO_DEBUG_AUTH)
|
||||
|
||||
/* Unset AUTHSTATE as it may not be correct for the runas user. */
|
||||
unsetenv("AUTHSTATE");
|
||||
sudo_unsetenv("AUTHSTATE");
|
||||
|
||||
debug_return_int(AUTH_SUCCESS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user