All of lore.kernel.org
 help / color / mirror / Atom feed
* Add btrfs to fixfiles
@ 2009-02-17 16:42 Daniel J Walsh
  2009-02-18 21:16 ` Joshua Brindle
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2009-02-17 16:42 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 363 bytes --]

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

[-- Attachment #2: nsapolicycoreutils_scripts_fixfiles.patch --]
[-- Type: text/plain, Size: 1216 bytes --]

--- nsapolicycoreutils/scripts/fixfiles	2008-09-12 11:48:15.000000000 -0400
+++ policycoreutils-2.0.61/scripts/fixfiles	2009-02-17 11:25:28.000000000 -0500
@@ -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 <dwalsh@redhat.com>
 #
 # This program is free software; you can redistribute it and/or modify
@@ -36,8 +36,8 @@
 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

[-- Attachment #3: nsapolicycoreutils_scripts_fixfiles.patch.sig --]
[-- Type: application/pgp-signature, Size: 72 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add btrfs to fixfiles
  2009-02-17 16:42 Add btrfs to fixfiles Daniel J Walsh
@ 2009-02-18 21:16 ` Joshua Brindle
  0 siblings, 0 replies; 4+ messages in thread
From: Joshua Brindle @ 2009-02-18 21:16 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: SE Linux

Daniel J Walsh wrote:
> -----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-----
> 

Merged in policycoreutils 2.0.62

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Add btrfs to fixfiles.
@ 2009-05-20 19:02 Daniel J Walsh
  2009-06-23 17:07 ` Joshua Brindle
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2009-05-20 19:02 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

Hopefully the last time we will ever need to update.  Once patch gets 
out with kernel support to tell me which file systems support xattr, we 
can remove this hack.

[-- Attachment #2: policycoreutils-fixfiles.patch --]
[-- Type: text/plain, Size: 1318 bytes --]

--- nsapolicycoreutils/scripts/fixfiles	2009-05-18 13:53:14.000000000 -0400
+++ policycoreutils-2.0.62/scripts/fixfiles	2009-05-05 10:47:08.000000000 -0400
@@ -89,7 +89,7 @@
                fi; \
             done | \
 	while read pattern ; do sh -c "find $pattern \
-		      ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o -fstype ext4dev  -o -fstype gfs2 -o -fstype jfs -o -fstype xfs \) -prune  -o \
+		      ! \( -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 \
 		      \( -wholename /home -o -wholename /root -o -wholename /tmp -wholename /dev \) -prune -o -print0"; \
 		      done 2> /dev/null | \
 	 ${RESTORECON} $* -0 -f - 
@@ -129,7 +129,7 @@
 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 \) -prune  -o -print0 | \
+	    ! \( -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} ${OUTFILES} ${FORCEFLAG} $* -0 -f - 2>&1 >> $LOGFILE
     else
 	${RESTORECON} ${OUTFILES} ${FORCEFLAG} -R $* $FILEPATH 2>&1 >> $LOGFILE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add btrfs to fixfiles.
  2009-05-20 19:02 Daniel J Walsh
@ 2009-06-23 17:07 ` Joshua Brindle
  0 siblings, 0 replies; 4+ messages in thread
From: Joshua Brindle @ 2009-06-23 17:07 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: SE Linux

Daniel J Walsh wrote:
> Hopefully the last time we will ever need to update.  Once patch gets
> out with kernel support to tell me which file systems support xattr, we
> can remove this hack.

Merged in policycoreutils 2.0.64

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-23 17:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17 16:42 Add btrfs to fixfiles Daniel J Walsh
2009-02-18 21:16 ` Joshua Brindle
  -- strict thread matches above, loose matches on Subject: below --
2009-05-20 19:02 Daniel J Walsh
2009-06-23 17:07 ` Joshua Brindle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.