I've backported the relevant patches to Quantal and Precise. I've verified that the test case in the bug description passes, I've created a test case to add to the test-sudo.py script in the QA Regression Testing (QRT) branch, and I've verified that all existing QRT sudo tests still pass.
I noticed that upstream sudo (version 1.8.5 and 1.8.4p5) just announced support for merging the PAM environment into the user environment:
http:// www.sudo. ws/sudo/ stable. html#1. 8.5
I've backported the relevant patches to Quantal and Precise. I've verified that the test case in the bug description passes, I've created a test case to add to the test-sudo.py script in the QA Regression Testing (QRT) branch, and I've verified that all existing QRT sudo tests still pass.