Bug 179011 - Remove pam_console_apply from init script
Summary: Remove pam_console_apply from init script
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-26 15:51 UTC by Daniel Walsh
Modified: 2014-03-17 02:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-31 21:31:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Walsh 2006-01-26 15:51:16 UTC
Description of problem:

pam_console_apply is no longer needed in rc.sysinit since udev is creating the
/dev directory freshly on reboot. 

This is causing some bogus avc messages.

Comment 1 Bill Nottingham 2006-01-26 16:23:48 UTC
What happens if you have unclean shutdown, and there's a leftover console lock
entry when udev runs on startup?

Comment 2 Nalin Dahyabhai 2006-01-26 18:50:18 UTC
The pam_console_apply helper doesn't clean up the lock; rc.sysinit will continue
to clear the lock, and udev will function as it does now.  But calling
pam_console_apply to reset permissions on devices which the user might have
owned when the reset button was pressed became unnecessary when we made /dev
non-persistent.

Comment 3 Bill Nottingham 2006-01-26 20:36:31 UTC
What I'm trying to say is that the lock is there *when udev starts on boot* from
before the reset button was pressed - is udev using this stale information when
it recreates the devices?

Comment 4 Nalin Dahyabhai 2006-01-26 21:46:40 UTC
Oh, I see what you mean now.  I don't see any calls to udev in the mkinitrd
script.  Are we still calling udev before rc.sysinit, or am I missing part of
the boot process?

Comment 5 Bill Nottingham 2006-01-27 18:27:35 UTC
It's at the top of rc.sysinit, but it's before the read/write remount of /, so
there could be leftover cruft in /var.

I'll test this, just need to get in front of a machine of recent enough vintage.

Comment 6 Bill Nottingham 2006-01-31 21:31:23 UTC
Yeah, you can't remove it because there could be a stale console.lock file when
udev runs.


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