2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
7 # tests various file permission options modified from CXFSQA test fs_perms
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
23 # get standard environment, filters and checks
27 # real QA test starts here
31 QA_FS_PERMS=$here/src/fs_perms
34 cp $here/src/testx ./testx.file
36 # file_perm owner_uid owner_gid tester_uid tester_gid perm_to_test expected_result pass=1
37 $QA_FS_PERMS 001 99 99 12 100 x 1
38 $QA_FS_PERMS 010 99 99 200 99 x 1
39 $QA_FS_PERMS 100 99 99 99 500 x 1
40 $QA_FS_PERMS 002 99 99 12 100 w 1
41 $QA_FS_PERMS 020 99 99 200 99 w 1
42 $QA_FS_PERMS 200 99 99 99 500 w 1
43 $QA_FS_PERMS 004 99 99 12 100 r 1
44 $QA_FS_PERMS 040 99 99 200 99 r 1
45 $QA_FS_PERMS 400 99 99 99 500 r 1
46 $QA_FS_PERMS 000 99 99 99 99 r 1
47 $QA_FS_PERMS 000 99 99 99 99 w 1
48 $QA_FS_PERMS 000 99 99 99 99 x 1
49 $QA_FS_PERMS 010 99 99 99 500 x 1
50 $QA_FS_PERMS 100 99 99 200 99 x 1
51 $QA_FS_PERMS 020 99 99 99 500 w 1
52 $QA_FS_PERMS 200 99 99 200 99 w 1
53 $QA_FS_PERMS 040 99 99 99 500 r 1
54 $QA_FS_PERMS 400 99 99 200 99 r 1