Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

Re: [rhelv5-list] restorecond errors in /var/log/messages

Steve Grubb

2008-02-29

Replies: Find Java Web Hosting

Author LoginPost Reply
On Friday 29 February 2008 06:47:04 wolf2k5 wrote:
> On all of them I get the following error messages in the /var/log/messages
> file:
>
> Feb 26 17:14:04 myservername restorecond: Will not restore a file with
> more than one hard link (/etc/resolv.conf) Invalid argument
> Feb 26 19:14:38 myservername restorecond: Will not restore a file with
> more than one hard link (/etc/resolv.conf) Invalid argument
> Feb 27 10:31:16 myservername restorecond: Will not restore a file with
> more than one hard link (/etc/resolv.conf) Invalid argument
>
> Any ideas?

Yes, something is hardlinking to /etc/resolv.conf and restorecon is refusing
to relabel it. To figure out what it is:

find / -xdev -inum `ls -i /etc/resolv.conf | awk '{ print $1 }'`

You need to break the links to get restorecon working without complaint.

-Steve

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.