Bug 178465 - resolv.conf mislabled after install
Summary: resolv.conf mislabled after install
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-20 20:36 UTC by Bill Nottingham
Modified: 2014-03-17 02:57 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

Description Bill Nottingham 2006-01-20 20:36:37 UTC
avc: denied { write } for pid=2301 comm="dhclient-script" name="resolv.conf"
scontext=root:system_r:dhcpc_t ... tcontext=system_u:object_r:etc_t

Comment 1 Bill Nottingham 2006-01-20 20:52:29 UTC
restorecon /etc/resolv.conf after install fixes it, however, by that point, you
already have a resolv.conf that doesn't have a nameserver in it.

Comment 2 Chris Lumens 2006-01-23 20:47:15 UTC
Are you using kickstart and doing anything to modify /etc/resolv.conf during
your %post script?  Our default install sets the file to
system_u:object_r:net_conf_t but gets reset to whatever the parent says if we
try touching the file after installation is complete.

Comment 3 Bill Nottingham 2006-01-23 20:53:21 UTC
Unless 
"/usr/sbin/authconfig --enablekrb5realmdns --kickstart"
touches it, no, I'm not touching it.

Comment 4 Chris Lumens 2006-01-23 20:56:55 UTC
Could you check /var/log/anaconda.log for resolv.conf?  We log a message for
every file we change the context on.

Comment 5 Bill Nottingham 2006-01-23 21:02:20 UTC
During install? There's nothing in install.log*.


Comment 6 Bill Nottingham 2006-01-23 21:03:16 UTC
Oh wait, I think this is the box that tracebacked writing the KS file... is the
reset to net_conf_t after that?

Comment 7 Chris Lumens 2006-01-23 21:08:44 UTC
Setting file contexts is the step right after writing the kickstart config.

Comment 8 Bill Nottingham 2006-01-23 21:31:40 UTC
OK then. :)


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