Whamcloud - gitweb
LU-7483 test: Modifying filtering in acl for SElinux feature
[fs/lustre-release.git] / lustre / tests / acl / permissions.test
index a7ca8e0..b0b5cc1 100644 (file)
@@ -20,7 +20,7 @@ defined permissions.
        $ cd d
        $ umask 027
        $ touch f
-       $ ls -l f | awk -- '{ print $1, $3, $4 }'
+       $ ls -l f | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }'
        > -rw-r----- root root
 
 
@@ -40,7 +40,7 @@ Now, change the ownership of the file to bin:bin and verify that this
 gives user bin write access.
 
        $ chown bin:bin f
-       $ ls -l f | awk -- '{ print $1, $3, $4 }'
+       $ ls -l f | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }'
        > -rw-r----- bin bin
        $ su bin
        $ echo bin >> f
@@ -262,12 +262,12 @@ directories if the file has an ACL and only CAP_FOWNER would grant them.
        $ mkdir -m 600 x
        $ chown daemon:daemon x
        $ echo j > x/j
-       $ ls -l x/j | awk -- '{ print $1, $3, $4 }'
+       $ ls -l x/j | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }'
        > -rw-r----- root root
 
        $ setfacl -m u:daemon:r x
 
-       $ ls -l x/j | awk -- '{ print $1, $3, $4 }'
+       $ ls -l x/j | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }'
        > -rw-r----- root root
        (With the bug this gives: `ls: x/j: Permission denied'.)