Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 134941

Summary: gdm fails to reset console user if Xserver is killed with Ctrl-Alt-Backspace
Product: [Fedora] Fedora Reporter: Thomas Woerner <twoerner>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: nalin, rhbugzilla, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-20 18:20:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 130887    
Attachments:
Description Flags
Don't check existance of TTY when dropping console perms none

Description Thomas Woerner 2004-10-07 13:32:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001
Firefox/0.10

Description of problem:
gdm should set console user back to root if Xserver gets killed.

Version-Release number of selected component (if applicable):
gdm-2.6.0.5-2

How reproducible:
Always

Steps to Reproduce:
1. Go to runlevel 5
2. Log in as user1
3. Kill Xserver with Ctrl-Alt-Backspace
5. Login as an user2: Files from /etc/security/console.perms still
belong to user1


Actual Results:  No reset of file permissions.

Expected Results:  Reset of file permissions.

Additional info:
This also happens on RHEL3 etc.

Comment 1 Ray Strode [halfline] 2004-10-20 09:20:52 UTC
Hi so this actually looks like it may be a problem with pam_console.so and not
GDM.  Basically pam_console checks to make sure the display socket is around
before unref'n console priveleges.  Of course, if the user ctrl-alt-backspaces
then the display socket will be wiped.

Comment 2 Ray Strode [halfline] 2004-10-20 09:24:37 UTC
Created attachment 105500 [details]
Don't check existance of TTY when dropping console perms

Here's a patch that inhibits the checks when dropping console perms.  It needs
to be reviewed by someone who knows pam better than me.

Comment 3 Tomas Mraz 2004-10-20 12:16:08 UTC
I think the patch should be harmless however I'll modify it to skip
the check only on X logins not console logins.




Comment 4 Ray Strode [halfline] 2004-10-20 18:20:34 UTC
patch in rawhide seems to work fine, closing...

Comment 5 Ray Strode [halfline] 2004-11-05 03:03:36 UTC
*** Bug 86481 has been marked as a duplicate of this bug. ***