syzkaller/pkg/osutil
Dmitry Vyukov a2d178996b vm: add workdir_template functionality
The new manager config argument workdir_template refers to a directory. Optional.
Each VM will get a recursive copy of the files that are present in workdir_template.
VM config can then use these private copies as needed. The copy directory
can be referenced with "{{TEMPLATE}}" string. This is different from using
the files directly in that each instance will get own clean, private,
scratch copy of the files. Currently supported only for qemu_args argument
of qemu VM type. Use example:
Create a template dir with necessary files:
$ mkdir /mytemplatedir
$ truncate -s 64K /mytemplatedir/fd
Then specify the dir in the manager config:
	"workdir_template": "/mytemplatedir"
Then use these files in VM config:
	"qemu_args": "-fda {{TEMPLATE}}/fd"
2019-12-03 18:48:14 +01:00
..
fileutil_test.go all: fix gometalinter warnings 2018-03-08 18:48:26 +01:00
fileutil.go pkg/osutil: always remove old file in Rename 2018-12-20 13:22:46 +01:00
osutil_akaros.go tools/syz-env: restrict Makefile parallelism based on RAM 2019-07-19 09:51:07 +02:00
osutil_appengine.go pkg/osutil: kill subprocesses more reliably 2019-03-18 10:52:18 +01:00
osutil_bsd.go tools/syz-env: restrict Makefile parallelism based on RAM 2019-07-19 09:51:07 +02:00
osutil_darwin.go tools/syz-env: restrict Makefile parallelism based on RAM 2019-07-19 09:51:07 +02:00
osutil_fuchsia.go tools/syz-env: restrict Makefile parallelism based on RAM 2019-07-19 09:51:07 +02:00
osutil_linux.go pkg/osutil: fix arm build 2019-09-16 14:15:38 +02:00
osutil_test.go pkg/osutil: add IsExist helper function 2017-06-17 12:11:24 +02:00
osutil_unix.go Add mandatory OpenBSD bits (#689) 2018-08-28 10:07:26 -07:00
osutil_windows.go tools/syz-env: restrict Makefile parallelism based on RAM 2019-07-19 09:51:07 +02:00
osutil.go vm: add workdir_template functionality 2019-12-03 18:48:14 +01:00