xref: /third_party/ltp/runtest/fs_perms_simple (revision f08c3bdf)
1f08c3bdfSopenharmony_ci#
2f08c3bdfSopenharmony_ci# These tests are setting file permissions/group/uid and are trying to
3f08c3bdfSopenharmony_ci# open/write/execute the file.
4f08c3bdfSopenharmony_ci#
5f08c3bdfSopenharmony_ci# fs_perms file_mode file_uid file_gid test_uid test_gid mode (r|w|x) expected_result
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ci# We are executing shell script, thuss
8f08c3bdfSopenharmony_ci# both exec and read right is needed.
9f08c3bdfSopenharmony_cifs_perms01 fs_perms 005 99 99 12 100 x 0
10f08c3bdfSopenharmony_cifs_perms02 fs_perms 050 99 99 200 99 x 0
11f08c3bdfSopenharmony_cifs_perms03 fs_perms 500 99 99 99 500 x 0
12f08c3bdfSopenharmony_cifs_perms04 fs_perms 002 99 99 12 100 w 0
13f08c3bdfSopenharmony_cifs_perms05 fs_perms 020 99 99 200 99 w 0
14f08c3bdfSopenharmony_cifs_perms06 fs_perms 200 99 99 99 500 w 0
15f08c3bdfSopenharmony_cifs_perms07 fs_perms 004 99 99 12 100 r 0
16f08c3bdfSopenharmony_cifs_perms08 fs_perms 040 99 99 200 99 r 0
17f08c3bdfSopenharmony_cifs_perms09 fs_perms 400 99 99 99 500 r 0
18f08c3bdfSopenharmony_cifs_perms10 fs_perms 000 99 99 99 99  r 1
19f08c3bdfSopenharmony_cifs_perms11 fs_perms 000 99 99 99 99  w 1
20f08c3bdfSopenharmony_cifs_perms12 fs_perms 000 99 99 99 99  x 1
21f08c3bdfSopenharmony_cifs_perms13 fs_perms 010 99 99 99 500 x 1
22f08c3bdfSopenharmony_cifs_perms14 fs_perms 100 99 99 200 99 x 1
23f08c3bdfSopenharmony_cifs_perms15 fs_perms 020 99 99 99 500 w 1
24f08c3bdfSopenharmony_cifs_perms16 fs_perms 200 99 99 200 99 w 1
25f08c3bdfSopenharmony_cifs_perms17 fs_perms 040 99 99 99 500 r 1
26f08c3bdfSopenharmony_cifs_perms18 fs_perms 400 99 99 200 99 r 1
27