Bug 71468

Summary: Bad permissions in /dev after ctrl-alt-backspace in X.
Product: [Retired] Red Hat Linux Reporter: Need Real Name <qjm3>
Component: pamAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED DUPLICATE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: srevivo
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-13 23:00:01 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:

Description Need Real Name 2002-08-13 22:59:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020408

Description of problem:
A ctrl-alt-backspace on an xserver fails to reset the permissions from
/etc/security/console.perms so the original user owns the floppy, cdrom, sound
etc.  pam_console_apply -r does not reset /dev/console either.

Version-Release number of selected component (if applicable): 0.75-32


How reproducible:
Always

Steps to Reproduce:
1. ctrl-alt-backspace in kde [served from kdm]
2. login as different user
3. Cannot access /dev/{fd0,dsp} etc


Actual Results:  Original user is listed in /var/run/console/$USER and in
/var/run/console.lock, and owns all the files in /dev as according to
/etc/security/console.perms, when they are not actually logged in.  Subsequent
logins with correct logouts by original user do not alter the permissions.  The
original user retains all /dev permissions until reboot.

Expected Results:  Ownership of /dev/{fd0,dsp} etc should have reverted to root.
Subsequently running pam_console_apply -r to reset the perms fails to reset the
/dev/console ownership. The original user logging in + out correctly could fix
the problem? 

Additional info:
Security Risk:  In principal a rogue user can use this to get remote access to
the microphone, speaker, etc by using ctrl-alt-backspace to logout and then
subsequently logging in remotely. Denial of floppy + sound to other users.

Redhat 7.3 using kerberos5 + NIS, default pam, using kde + kdm

An additional last-minute earch came up with Bug #59936

Comment 1 Mark J. Cox 2002-08-16 07:58:21 UTC

*** This bug has been marked as a duplicate of 59936 ***