File: testing.txt

package info (click to toggle)
libvirt-sandbox 0.5.1%2Bgit20160404-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,104 kB
  • ctags: 1,964
  • sloc: ansic: 12,696; python: 2,110; makefile: 447; sh: 302; xml: 151; perl: 110
file content (77 lines) | stat: -rw-r--r-- 1,680 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
   Test Plan for libvirt Sandbox
   =============================

For all tests, repeat with both KVM and LXC, eg

   export LIBVIRT_DEFAULT_URI=qemu:///session
   export LIBVIRT_DEFAULT_URI=qemu:///system
   export LIBVIRT_DEFAULT_URI=lxc:///

 1. Console I/O.

     a. No I/O, with TTY

          virt-sandbox /bin/false

     b. Output only, with TTY

          virt-sandbox /bin/date

     c. Input/output, with TTY

          virt-sandbox /bin/sh

     d. No I/O, without TTY

          virt-sandbox /bin/false < /dev/null > /dev/null

     e. Output only, without TTY

          virt-sandbox /bin/date > date.txt

     f. Input/output, without TTY

          virt-sandbox /bin/cat < src.txt > dst.txt


 2. Filesystem config

     a. Host FS only

     b. Host FS + /tmp dir

     c. Host FS + /tmp tempdir

     d. Host FS + /home dir + /tmp tempdir

     e. Host FS + /home file

     f. Host FS + /home block

     g. Host FS + /mnt file + /home bind + /tmp bind


 3. File includes

     a. Host FS + /tmp dir + copy file /home/tmp/foo into /tmp/foo

     b. Host FS + /tmp tempdir + copy file /home/tmp/foo into /tmp/foo

     c. Host FS + /tmp dir + copy dir /home/tmp/bar into /tmp/bar

     d. Host FS + /tmp tempdir + copy dir /home/tmp/bar into /tmp/bar

     e. Host FS + /tmp dir + copy filelist /home/tmp/foolist

     f. Host FS + /tmp tempdir + copy filelist /home/tmp/foolist


 4. Environment / security

     a. Same UID/GID, same $USER, same $HOME, no capabilities

     b. UID/GID > 0, USER=foo, HOME=/home/foo, no capabilities

     c. UID/GID == 0, USER=root, HOME=/root, no capabilities

     d. UID/GID == 0, USER=root, HOME=/root, all capabilities