Whamcloud - gitweb
LU-4423 libcfs: use 64-bit inode timestamps internally
[fs/lustre-release.git] / lustre / tests / sanity-selinux.sh
old mode 100644 (file)
new mode 100755 (executable)
index d86c11c..b1fb79b
@@ -29,7 +29,7 @@ require_dsh_mds || exit 0
        error "RUNAS_ID set to 0, but UID is also 0!"
 
 #
-# global variables of this sanity
+# global variables of this  sanity
 #
 
 check_selinux() {
@@ -40,13 +40,10 @@ check_selinux() {
                 "but it must be enforced to run sanity-selinux" && exit 0
        fi
        local selinux_policy=$(sestatus |
-                              awk -F':' '$1 == "Loaded policy name" {print $2}' |
-                              xargs)
+               awk -F':' '$1 == "Loaded policy name" {print $2}' | xargs)
        if [ -z "$selinux_policy" ]; then
            selinux_policy=$(sestatus |
-                            awk -F':' '$1 == "Policy from config file"
-                                    {print $2}' |
-                            xargs)
+               awk -F':' '$1 == "Policy from config file" {print $2}' | xargs)
        fi
        [ "$selinux_policy" == "targeted" ] ||
                error "Accepting only targeted policy"