Bug 635640 - Dracut script appears to create /etc/modprobe.conf
Summary: Dracut script appears to create /etc/modprobe.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-20 12:04 UTC by Tom Horsley
Modified: 2010-09-20 13:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-20 13:39:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tom Horsley 2010-09-20 12:04:59 UTC
Description of problem:

Dracut may be the source of the deprecated /etc/modprobe.conf file.
In my fedora 14 testing, I found an /etc/modprobe.conf file was created
by something (no idea what for sure).

I used a big hammer and did a grep -r on the whole partition for
modprobe.conf, and while I found a lot of references to it, I found
the script named:

/usr/share/dracut/modules.d/90kernel-modules/install

appears to create it:

[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf

Version-Release number of selected component (if applicable):
dracut-006-2.fc14.noarch

How reproducible:
I only installed f14 once, so I couldn't say for sure.

Steps to Reproduce:
1.install f14 alpha
2.get updates regularly
3.notice at some point /etc/modprobe.conf is created
  
Actual results:
/etc/modprobe.conf

Expected results:
No /etc/modprobe.conf

Additional info:
Also see thread on fedora test list:

http://lists.fedoraproject.org/pipermail/test/2010-September/093856.html

The file is public write, so that is a security problem as well.

Comment 1 Bryn M. Reeves 2010-09-20 12:37:36 UTC
I thunk dracut_install just installs to the initramfs image? I.e. the above fragment says "if there's an /etc/modprobe.conf put it in the initramfs".

Comment 2 Tom Horsley 2010-09-20 12:50:07 UTC
Yea, the sense of that test is different than I thought now that I look
at it.

It is also possible that something created it earlier which has since been
updated out of existence. My initial install was with the f14 alpha dvd.

Comment 3 Harald Hoyer 2010-09-20 13:39:49 UTC
(In reply to comment #1)
> I thunk dracut_install just installs to the initramfs image? I.e. the above
> fragment says "if there's an /etc/modprobe.conf put it in the initramfs".

right


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