Red Hat Bugzilla – Bug 154946
coreutils - su pam bugs
Last modified: 2007-11-30 17:11:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050227 Firefox/1.0.1 Fedora/1.0.1-2
Description of problem:
The first issue is that su does not set the pam tty variable. This is needed
for auditing among other things.
Next, if there was a problem with init groups, session close must be called
since session open can mount drives.
The pam credentials should not be set in the child since the parent will need
to dispose of credentials later.
If there is a fork error, pam credentials need to be deleted and the session
The parent needs to delete the pam credentials before it ends pam.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install the latest pam
2. do a su - root
3. look in the audit log what tty
the other items are based on code review
Actual Results: terminal=?
Expected Results: terminal=pts/5
Created attachment 113197 [details]
patch fixing problems described herein
Thanks. Fixed in CVS.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.