Bug 154946 - coreutils - su pam bugs
coreutils - su pam bugs
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
: Security
Depends On:
Blocks: 156322
  Show dependency treegraph
 
Reported: 2005-04-14 18:55 EDT by Steve Grubb
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
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: ---


Attachments (Terms of Use)
patch fixing problems described herein (2.48 KB, patch)
2005-04-14 18:59 EDT, Steve Grubb
no flags Details | Diff

  None (edit)
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 
closed.

The parent needs to delete the pam credentials before it ends pam.

Version-Release number of selected component (if applicable):
coreutils-5.2.1-44

How reproducible:
Always

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.

http://rhn.redhat.com/errata/RHBA-2005-540.html

Note You need to log in before you can comment on or make changes to this bug.