-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5D6DYACgkQrlYvE4MpobOAgwCg0oAXTX7Jcy+PnpOTJkkwiih0 IskAoIbyjNXbcolq7r1NM1T7UZgHcw4p =c/TT -----END PGP SIGNATURE-----
>From 104c770bc6f3004a19b0bf6c506dfab050378936 Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Sun, 10 Jul 2011 16:21:35 +0200 Subject: [PATCH 23/96] policycoreutils: fixfiles: stop trying to be smart about filesystems The type of a filesystem (ext*, btrfs, etc) really doesn't matter when it comes to the ability to set labels. Stop trying to be smart and just call restorecon. It will either work or it won't and out heuristic isn't helping. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> Acked-by: Dan Walsh <dwalsh@xxxxxxxxxx> --- policycoreutils/scripts/fixfiles | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles index 43490f2..054d995 100755 --- a/policycoreutils/scripts/fixfiles +++ b/policycoreutils/scripts/fixfiles @@ -175,13 +175,7 @@ if [ ! -z "$RPMFILES" ]; then exit $? fi if [ ! -z "$FILEPATH" ]; then - if [ -x /usr/bin/find ]; then - /usr/bin/find "$FILEPATH" \ - ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o -fstype ext4dev -o -fstype gfs2 -o -fstype jfs -o -fstype xfs -o -fstype btrfs \) -prune -o -print0 | \ - ${RESTORECON} ${FORCEFLAG} $* -0 -f - 2>&1 | cat >> $LOGFILE - else - ${RESTORECON} ${FORCEFLAG} -R $* $FILEPATH 2>&1 | cat >> $LOGFILE - fi + ${RESTORECON} ${FORCEFLAG} -R $* $FILEPATH 2>&1 | cat >> $LOGFILE return fi [ -x /usr/sbin/genhomedircon ] && /usr/sbin/genhomedircon -- 1.7.6
Attachment:
0023-policycoreutils-fixfiles-stop-trying-to-be-smart-abo.patch.sig
Description: PGP signature