X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=common.dump;h=fa38afb9f2247fb2b005b9a27c752ef873f4b444;hp=31ab8b22b1f9af78aa54d052d594998ac3dc2403;hb=1262ba3c4afe5b49d9abd46df95c8c2b0da32f69;hpb=0c6dfc4eddc5c3a703b6df48c813332e52024e09 diff --git a/common.dump b/common.dump index 31ab8b22..fa38afb9 100644 --- a/common.dump +++ b/common.dump @@ -1172,7 +1172,7 @@ _get_eas_on_path() # sort |\ # and this is now the Linux way... echo "User names" - getfattr --absolute-names -Rh $_path |\ + getfattr --absolute-names -Rh -m user $_path |\ perl -wn -e ' if (m/^# file: (\S+)/) { $file = $1 } elsif (m/^user\.(\w+)/) { print $file, " ",$1,"\n" }' |\ @@ -1181,6 +1181,18 @@ _get_eas_on_path() attr -g $ea_name $file done + if [ "$USE_ATTR_SECURE" = yes ]; then + echo "Security names" + getfattr --absolute-names -Rh -m security $_path |\ + perl -wn -e ' + if (m/^# file: (\S+)/) { $file = $1 } + elsif (m/^security\.(\w+)/) { print $file, " ",$1,"\n" }' |\ + sort |\ + while read file ea_name; do + attr -g $ea_name $file + done + fi + echo "Root names" getfattr --absolute-names -Rh -m trusted $_path |\ perl -wn -e '