ia64/xen-unstable

view tools/xenstore/testsuite/14complexperms.test @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents a9ee400a5da9
children 8799d14bef77 9312a3e8a6f8 dfaf788ab18c
line source
1 # We should not be able to tell the difference between a node which
2 # doesn't exist, and a node we don't have permission on, if we don't
3 # have permission on it directory.
5 mkdir /dir
6 setperm /dir 0 NONE
8 # First when it doesn't exist
9 setid 1
10 expect *Permission denied
11 dir /dir/file
12 expect *Permission denied
13 read /dir/file
14 expect *Permission denied
15 write /dir/file none value
16 expect *Permission denied
17 write /dir/file create value
18 expect *Permission denied
19 write /dir/file excl value
20 expect write failed: Invalid argument
21 write /dir/file crap value
22 expect *Permission denied
23 mkdir /dir/file
24 expect *Permission denied
25 rm /dir/file
26 expect *Permission denied
27 rm /dir
28 expect *Permission denied
29 getperm /dir/file
30 expect *Permission denied
31 setperm /dir/file 0 NONE
32 watch /dir/file token
33 setid 0
34 write /dir/file create contents
35 rm /dir/file
36 setid 1
37 expect waitwatch failed: Connection timed out
38 waitwatch
39 unwatch /dir/file token
40 expect *No such file or directory
41 unwatch /dir/file token
42 expect *Permission denied
43 start /dir/file
44 expect *No such file or directory
45 abort
46 expect *Permission denied
47 start /dir/file
48 expect *No such file or directory
49 commit
50 expect *Permission denied
51 introduce 2 100 7 /dir/file
53 # Now it exists
54 setid 0
55 write /dir/file create contents
57 setid 1
58 expect *Permission denied
59 dir /dir/file
60 expect *Permission denied
61 read /dir/file
62 expect *Permission denied
63 write /dir/file none value
64 expect *Permission denied
65 write /dir/file create value
66 expect *Permission denied
67 write /dir/file excl value
68 expect write failed: Invalid argument
69 write /dir/file crap value
70 expect *Permission denied
71 mkdir /dir/file
72 expect *Permission denied
73 rm /dir/file
74 expect *Permission denied
75 rm /dir
76 expect *Permission denied
77 getperm /dir/file
78 expect *Permission denied
79 setperm /dir/file 0 NONE
80 watch /dir/file token
81 setid 0
82 write /dir/file create contents
83 rm /dir/file
84 setid 1
85 expect waitwatch failed: Connection timed out
86 waitwatch
87 unwatch /dir/file token
88 expect *No such file or directory
89 unwatch /dir/file token
90 expect *Permission denied
91 start /dir/file
92 expect *No such file or directory
93 abort
94 expect *Permission denied
95 start /dir/file
96 expect *No such file or directory
97 commit
98 expect *Permission denied
99 introduce 2 100 7 /dir/file