Bug 518528

Summary: /usr/sbin/restorecond goes batshit, follows .. into insanity.
Product: [Fedora] Fedora Reporter: Valdis Kletnieks <valdis.kletnieks>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-20 19:05:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Valdis Kletnieks 2009-08-20 18:49:49 UTC
Description of problem:
There's a line in /etc/selinux/restorecond.conf that says:

/root/*

which for ages has DTRT (labelled files under /root).  During today's yum update, it started spewing zillions of messages of the form:

Warning! /root/../lib/terminfo/v/vt100-am refers to a hard link, not fixing hard links.
Warning! /root/../lib/terminfo/v/vt100 refers to a hard link, not fixing hard links.
Warning! /root/../lib/terminfo/v/vt200 refers to a hard link, not fixing hard links.
Warning! /root/../lib/terminfo/v/vt220 refers to a hard link, not fixing hard links.
...
Warning! /root/../home/valdis/src/cdrtools-2.0/INSTALL refers to a hard link, not fixing hard links.
Warning! /root/../home/valdis/src/cdrtools-2.0/BUILD refers to a hard link, not fixing hard links.
...
Warning! /root/../sbin/mke2fs refers to a hard link, not fixing hard links.
Warning! /root/../sbin/fsck.ext2 refers to a hard link, not fixing hard links.
Warning! /root/../sbin/mkfs.ext2 refers to a hard link, not fixing hard links.
Warning! /root/../sbin/e2fsck refers to a hard link, not fixing hard links.
Warning! /root/../sbin/fsck.ext3 refers to a hard link, not fixing hard links.
Warning! /root/../sbin/e2label refers to a hard link, not fixing hard links.
Warning! /root/../sbin/fsck.ext4dev refers to a hard link, not fixing hard links.
Warning! /root/../sbin/tune2fs refers to a hard link, not fixing hard links.

For some reason, it decided to follow /root/.. and walk the entire file system. Blargh. Probably something in:

* Wed Aug 19 2009 Dan Walsh <dwalsh@redhat.com> 2.0.71-6
- Redesign restorecond to use setfiles/restore functionality

(upgrading to 20.0.71-3 yesterday worked fine - today during the 'cleanup' phase the postinstall scriptlet triggered and all heck broke loose).

Version-Release number of selected component (if applicable):
policycoreutils-2.0.71-6.fc12.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2009-08-20 19:05:49 UTC
Fixed in policycoreutils-2.0.71-7.fc12.x86_64

Comment 2 Valdis Kletnieks 2009-08-20 19:12:59 UTC
Wow, that was quick service, thanks. ;)

Comment 3 Daniel Walsh 2009-08-20 19:53:16 UTC
BTW I would run a fixfiles restore