summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests/fspermission/imfs_fspermission.scn
blob: 87120ea5f7b8ea3b55a992ca46f3abc065bc0ef9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
*** FILE SYSTEM TEST ( IMFS ) ***
Initializing filesystem IMFS


*** PERMISSION TEST ***
The previous cmask is 022
The file mode of file01 is 755
The file mode of file02 is 755
The file mode of dir01 is 755
The previous cmask is 321
The file mode of file01 is 456
The file mode of file02 is 456
The file mode of dir01 is 456
The file mode of file01 is 777
The file mode of file02 is 240
The file mode of dir01 is 340
Testing open       with arguments: "file02,O_RDONLY"    EXPECT "EACCES"
PASS
Testing open       with arguments: "file02,O_RDWR"      EXPECT "EACCES"
PASS
Change euid and check
Testing open       with arguments: "file02,O_WRONLY"    EXPECT "EACCES"
PASS
Testing open       with arguments: "file02,O_RDWR"      EXPECT "EACCES"
PASS
Testing creat      with arguments: "path,mode"          EXPECT "EACCES"
PASS
Testing rename     with arguments: "path,\"test\""      EXPECT "EACCES"
PASS
Testing truncate   with arguments: "path,0"             EXPECT "EACCES"
PASS
Testing link       with arguments: "path,\"test\""      EXPECT "EACCES"
PASS
Testing unlink     with arguments: "path"               EXPECT "EACCES"
PASS
Change egid and check
Testing open       with arguments: "file02,O_WRONLY"    EXPECT "EACCES"
PASS
Testing open       with arguments: "file02,O_RDONLY"    EXPECT "EACCES"
PASS
Testing open       with arguments: "file02,O_RDWR"      EXPECT "EACCES"
PASS
Testing creat      with arguments: "path,mode"          EXPECT "EACCES"
PASS
The directory file mode is 777
The directory file mode is 321
*** END OF PERMISSION TEST ***


Shutting down filesystem IMFS
*** END OF FILE SYSTEM TEST ( IMFS ) ***