Bug 723950 - fixfiles not working on ext4 filesystems
Summary: fixfiles not working on ext4 filesystems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: policycoreutils
Version: 5.6
Hardware: All
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Michal Trunecka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-21 15:59 UTC by G. Bersano
Modified: 2014-09-30 23:33 UTC (History)
4 users (show)

Fixed In Version: policycoreutils-1.33.12-14.11.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-30 23:22:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1344 0 normal SHIPPED_LIVE policycoreutils bug fix update 2013-09-30 21:12:49 UTC

Description G. Bersano 2011-07-21 15:59:38 UTC
Description of problem:
/sbin/fixfiles returns without doing anything on filesystems formatted as ext4

Version-Release number of selected component (if applicable):
until policycoreutils-1.33.12-14.8


As the scripts enumerates accepted filesys types ( ext2, ext3, jfs,  xfs) and ext4 is missing it returns without doing any necessary modification.

The following patch make it work as expected.

Best regards,
Giorgio.


# diff -c /sbin/fixfiles-1.33.12-14.8 /sbin/fixfiles
*** /sbin/fixfiles-1.33.12-14.8	2010-04-03 05:09:27.000000000 +0200
--- /sbin/fixfiles	2011-07-09 16:21:58.000000000 +0200
***************
*** 88,94 ****
                 fi; \
              done | \
  	while read pattern ; do find $pattern \
! 		      ! \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -prune  -o \
  		      \( -wholename /home -o -wholename /root -o -wholename /tmp -wholename /dev \) -prune -o -print; \
  		      done 2> /dev/null | \
  	 ${RESTORECON} ${FORCEFLAG} $2 -v -f - 
--- 88,94 ----
                 fi; \
              done | \
  	while read pattern ; do find $pattern \
! 		      ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o -fstype jfs -o -fstype xfs \) -prune  -o \
  		      \( -wholename /home -o -wholename /root -o -wholename /tmp -wholename /dev \) -prune -o -print; \
  		      done 2> /dev/null | \
  	 ${RESTORECON} ${FORCEFLAG} $2 -v -f - 
***************
*** 127,133 ****
  if [ ! -z "$DIRS" ]; then
      if [ -x /usr/bin/find ]; then
  	for d in ${DIRS} ; do find $d \
! 	    ! \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -prune  -o -print | \
  	    ${RESTORECON} ${FORCEFLAG} $* -f - 2>&1 >> $LOGFILE
  	done
      else
--- 127,133 ----
  if [ ! -z "$DIRS" ]; then
      if [ -x /usr/bin/find ]; then
  	for d in ${DIRS} ; do find $d \
! 	    ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o -fstype jfs -o -fstype xfs \) -prune  -o -print | \
  	    ${RESTORECON} ${FORCEFLAG} $* -f - 2>&1 >> $LOGFILE
  	done
      else

Comment 1 RHEL Program Management 2011-09-23 00:46:45 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 2 RHEL Program Management 2013-04-17 09:08:20 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 3 Miroslav Grepl 2013-05-16 21:08:24 UTC
Fixed in policycoreutils-1.33.12-14.10.el5

Comment 6 Miroslav Grepl 2013-05-17 13:41:33 UTC
Fixed in policycoreutils-1.33.12-14.11.el5

Comment 9 errata-xmlrpc 2013-09-30 23:22:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1344.html


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