Bug 154946

Summary: coreutils - su pam bugs
Product: [Fedora] Fedora Reporter: Steve Grubb <sgrubb>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: RHBA-2005-540 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 10:38:00 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 156322    
Description Flags
patch fixing problems described herein none

Description Steve Grubb 2005-04-14 18:55:58 EDT
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):

How reproducible:

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

Additional info:
Comment 1 Steve Grubb 2005-04-14 18:59:11 EDT
Created attachment 113197 [details]
patch fixing problems described herein
Comment 2 Tim Waugh 2005-04-15 12:46:51 EDT
Thanks.  Fixed in CVS.
Comment 3 Red Hat Bugzilla 2005-10-05 10:38:00 EDT
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.