All of lore.kernel.org
 help / color / mirror / Atom feed
From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] adding fixfiles support for the Lustre	filesystem
Date: Fri, 26 Mar 2010 09:36:47 -0400	[thread overview]
Message-ID: <4BACB86F.4000307@redhat.com> (raw)
In-Reply-To: <51af93b71003260628p340d4243ma077924a96e075c8@mail.gmail.com>

On 03/26/2010 09:28 AM, Elia Pinto wrote:
>
> The Lustre filesystem support extended xattr and
> currenty it is necessary to extend fixfiles for
> every xattr capable filesystem.
> ---
>  policycoreutils/scripts/fixfiles |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/policycoreutils/scripts/fixfiles 
> b/policycoreutils/scripts/fixfiles
> index ae519fc..0d5d3d6 100755
> --- a/policycoreutils/scripts/fixfiles
> +++ b/policycoreutils/scripts/fixfiles
> @@ -35,8 +35,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 | 
> btrfs ).*\(rw/{print $3}';`
> -FILESYSTEMSRO=`mount | grep -v "context=" | egrep -v 
> '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]| ext4dev | gfs2 | xfs | jfs | 
> btrfs ).*\(ro/{print $3}';`
> +FILESYSTEMSRW=`mount | grep -v "context=" | egrep -v 
> '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]| ext4dev | gfs2 | xfs | jfs | 
> btrfs | lustre ).*\(rw/{print $3}';`
> +FILESYSTEMSRO=`mount | grep -v "context=" | egrep -v 
> '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]| ext4dev | gfs2 | xfs | jfs | 
> btrfs | lustre ).*\(ro/{print $3}';`
>  FILESYSTEMS="$FILESYSTEMSRW $FILESYSTEMSRO"
>  SELINUXTYPE="targeted"
>  if [ -e /etc/selinux/config ]; then
> @@ -88,7 +88,7 @@ if [ -f ${PREFC} -a -x /usr/bin/diff ]; then
>                 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 
> -o -fstype btrfs \) -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 -o fstype lustre \) -prune  -o \
>                       \( -wholename /home -o -wholename /root -o 
> -wholename /tmp -wholename /dev \) -prune -o -print0"; \
>                       done 2> /dev/null | \
>          ${RESTORECON} $* -0 -f -
> @@ -128,7 +128,7 @@ 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 | \
> +           ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o 
> -fstype ext4dev -o -fstype gfs2 -o -fstype jfs -o -fstype xfs -o 
> -fstype btrfs -o -fstype lustre \) -prune  -o -print0 | \
>             ${RESTORECON} ${FORCEFLAG} $* -0 -f - 2>&1 >> $LOGFILE
>      else
>         ${RESTORECON} ${FORCEFLAG} -R $* $FILEPATH 2>&1 >> $LOGFILE
> --
> 1.6.6
>
>
>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
>    
The latest fixfiles patches remove the need to list file systems that 
support labels.    If they ever get upstreamed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20100326/72f58fad/attachment.html 

      reply	other threads:[~2010-03-26 13:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26 13:28 [refpolicy] [PATCH] adding fixfiles support for the Lustre filesystem Elia Pinto
2010-03-26 13:36 ` Daniel J Walsh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BACB86F.4000307@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.