Red Hat Bugzilla – Bug 315211
Text mode network installer fails with DHCP and SELinux
Last modified: 2007-11-30 17:12:17 EST
Description of problem:
If you install F8t2 in text mode, you get a file that is hard linked from two
[root@zorro ~]# ls -idl /etc/sysconfig/networking/profiles/default/resolv.conf
18759492 -rw-r--r-- 2 root root 70 2007-10-01 18:35 /etc/resolv.conf
18759492 -rw-r--r-- 2 root root 70 2007-10-01 18:35
This causes an SELinux failure at boot time:
Oct 1 17:14:01 zorro restorecond: Will not restore a file with more than one
hard link (/etc/resolv.conf) Invalid argument
The effect of this is that DHCP configuration of /etc/resolv.conf fails, and you
can't access any DNS servers.
Steps to Reproduce:
Install f8t2 and choose the text mode installer, and select DHCP.
The easiest way to fix this would be to copy resolv.conf from
/etc/sysconfig/networking/profiles/default/ rather than hard-linking it.
Or use symbolic links. But this also looks like system-config-network/or
anaconda is not creating the file with the right context?
Could be related to Bugzilla #311481
You're right, it isn't creating the file with the right context: I had to set
the type of /etc/resolv.conf to net_conf_t.
I have verified that the latest build of anaconda sets the context on
/etc/resolv.conf correctly under text mode installations.