Bug 71468 - Bad permissions in /dev after ctrl-alt-backspace in X.
Summary: Bad permissions in /dev after ctrl-alt-backspace in X.
Keywords:
Status: CLOSED DUPLICATE of bug 59936
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: pam
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-13 22:59 UTC by Need Real Name
Modified: 2015-01-07 23:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-13 23:00:01 UTC
Embargoed:


Attachments (Terms of Use)

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 ***


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