summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/graphic/1113
blob: c86f68178fb4dfc79d03371f0a074534bef7fd34 (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
graphic: 0.897
device: 0.790
semantic: 0.755
instruction: 0.735
vnc: 0.645
mistranslation: 0.454
boot: 0.365
socket: 0.364
network: 0.324
other: 0.314
KVM: 0.251
assembly: 0.122

TMPDIR is not usable for snapshot-blockdevs, if not root
Description of problem:
for using static disk-content we're using `snapshot`-flag for certain disks and set `TMPDIR` to a VM-specific path.

when started as root, all is ok.

when started as non-root, `getenv(TMPDIR)` in function `get_tmp_filename()` in file `block.c` return `NULL`, because glibc handles `TMPDIR` as `UNSECURE_ENVVAR` (glibc-src: `sysdeps/generic/unsecvars.h`)

well, we could compile qemu by ourself, but then we might miss important updates, so maybe this can be solved in main-source?

possible solutions: 
- additionally look at another var like `QEMU_TMPDIR`, if `getenv("TMPDIR")` results in `NULL`
- add a global option to qemu like `--tmpdir=...`
- add a device-specific option like `snapshotdir=...`