Bug 518528 - /usr/sbin/restorecond goes batshit, follows .. into insanity.
Summary: /usr/sbin/restorecond goes batshit, follows .. into insanity.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-20 18:49 UTC by Valdis Kletnieks
Modified: 2009-08-20 19:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-20 19:05:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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> 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


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