1 | |
---|
2 | |
---|
3 | *** FILE SYSTEM TEST ( JFFS2 ) *** |
---|
4 | Initializing filesystem JFFS2 |
---|
5 | |
---|
6 | |
---|
7 | *** PERMISSION TEST *** |
---|
8 | The previous cmask is 022 |
---|
9 | The file mode of file01 is 755 |
---|
10 | The file mode of file02 is 755 |
---|
11 | The file mode of dir01 is 755 |
---|
12 | The previous cmask is 321 |
---|
13 | The file mode of file01 is 456 |
---|
14 | The file mode of file02 is 456 |
---|
15 | The file mode of dir01 is 456 |
---|
16 | The file mode of file01 is 777 |
---|
17 | The file mode of file02 is 240 |
---|
18 | The file mode of dir01 is 340 |
---|
19 | Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES" |
---|
20 | PASS |
---|
21 | Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES" |
---|
22 | PASS |
---|
23 | Change euid and check |
---|
24 | Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES" |
---|
25 | PASS |
---|
26 | Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES" |
---|
27 | PASS |
---|
28 | Testing creat with arguments: "path,mode" EXPECT "EACCES" |
---|
29 | PASS |
---|
30 | Testing rename with arguments: "path,\"test\"" EXPECT "EACCES" |
---|
31 | PASS |
---|
32 | Testing truncate with arguments: "path,0" EXPECT "EACCES" |
---|
33 | PASS |
---|
34 | Testing link with arguments: "path,\"test\"" EXPECT "EACCES" |
---|
35 | PASS |
---|
36 | Testing unlink with arguments: "path" EXPECT "EACCES" |
---|
37 | PASS |
---|
38 | Change egid and check |
---|
39 | Testing open with arguments: "file02,O_WRONLY" EXPECT "EACCES" |
---|
40 | PASS |
---|
41 | Testing open with arguments: "file02,O_RDONLY" EXPECT "EACCES" |
---|
42 | PASS |
---|
43 | Testing open with arguments: "file02,O_RDWR" EXPECT "EACCES" |
---|
44 | PASS |
---|
45 | Testing creat with arguments: "path,mode" EXPECT "EACCES" |
---|
46 | PASS |
---|
47 | The directory file mode is 777 |
---|
48 | The directory file mode is 321 |
---|
49 | *** END OF PERMISSION TEST *** |
---|
50 | |
---|
51 | |
---|
52 | Shutting down filesystem JFFS2 |
---|
53 | *** END OF FILE SYSTEM TEST ( JFFS2 ) *** |
---|