From f77e475fd839d26face3deaa7fa27c7265618a02 Mon Sep 17 00:00:00 2001 From: Joshua Brindle Date: Tue, 17 Feb 2009 11:43:11 -0500 Subject: [PATCH] Author: Daniel J Walsh Email: dwalsh@redhat.com Subject: Add btrfs to fixfiles Date: Tue, 17 Feb 2009 11:42:11 -0500 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hopefully will convert to seclabel when it is available. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkma6OMACgkQrlYvE4MpobNegwCfSBpm7O9wIKK+O89gC+Lwx+PV rmsAn12IADGzhFu4thYK5qakacviWwfZ =PtIL -----END PGP SIGNATURE----- Signed-off-by: Joshua Brindle --- policycoreutils/scripts/fixfiles | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles index 5bceefb4..ccd63655 100755 --- a/policycoreutils/scripts/fixfiles +++ b/policycoreutils/scripts/fixfiles @@ -3,7 +3,7 @@ # # Script to restore labels on a SELinux box # -# Copyright (C) 2004 Red Hat, Inc. +# Copyright (C) 2004-2009 Red Hat, Inc. # Authors: Dan Walsh # # This program is free software; you can redistribute it and/or modify @@ -36,8 +36,8 @@ SYSLOGFLAG="-l" LOGGER=/usr/sbin/logger SETFILES=/sbin/setfiles RESTORECON=/sbin/restorecon -FILESYSTEMSRW=`mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]| ext4dev | gfs2 | xfs | jfs ).*\(rw/{print $3}';` -FILESYSTEMSRO=`mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]| ext4dev | gfs2 | xfs | jfs ).*\(ro/{print $3}';` +FILESYSTEMSRW=`mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]| ext4dev | gfs2 | xfs | jfs | btrfs ).*\(rw/{print $3}';` +FILESYSTEMSRO=`mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]| ext4dev | gfs2 | xfs | jfs | btrfs ).*\(ro/{print $3}';` FILESYSTEMS="$FILESYSTEMSRW $FILESYSTEMSRO" SELINUXTYPE="targeted" if [ -e /etc/selinux/config ]; then