aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/osutil_linux.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/ipc: generate better temp name for executorDmitry Vyukov2019-02-081-1/+29
| | | | | | | | | Just appending the pid number can produce conflicting names if the name itself ends with digits (standard temp file naming convention). So append ".PID". Also remove beginning from too long names instead of ending. Temp files in tests has unique numbers at the end, we need to preserve them to avoid file name conflicts.
* pkg/osutil: replace UmountAll with RemoveAllDmitry Vyukov2018-08-041-3/+4
| | | | | | | | In pkg/ipc we don't just want to UmountAll, we want to remove all handling as many cases as possible (mounts, read-only files, etc, similar to executor's remove_dir). So unmounting and removing needs to be a single function, so that it can handle all these cases.
* pkg/osutil: allow disabling sandboxing with env varDmitry Vyukov2018-05-171-14/+21
| | | | | | | | If SYZ_DISABLE_SANDBOXING=yes is set, don't do user sandboxing. Will be usefule for bisection tool which runs locally, but needs to build kernel. Update #501
* pkg/osutil: use proper gid during sandboxingDmitry Vyukov2018-03-061-2/+2
|
* pkg/osutil: properly set gid for sandboxingDmitry Vyukov2017-11-171-11/+25
|
* pkg/kernel: sandbox make invocationDmitry Vyukov2017-11-171-2/+62
|
* pkg/osutil: don't leace runaway processesDmitry Vyukov2017-11-161-0/+7
| | | | | | When manager is stopped there are sometimes runaway qemu processes still running. Set PDEATHSIG for all subprocesses. We never need child processes outliving parents.
* executor, pkg/ipc: unify ipc protocol between linux and other OSesDmitry Vyukov2017-10-161-0/+16
| | | | | | | | | | | | | | | | | We currently use more complex and functional protocol on linux, and a simple ad-hoc protocol on other OSes. This leads to code duplication in both ipc and executor. Linux supports coverage, shared memory communication and fork server, which would also be useful for most other OSes. Unify communication protocol and parametrize it by (1) use of shmem or only pipes, (2) use of fork server. This reduces duplication in ipc and executor and will allow to support the useful features for other OSes easily. Finally, this fixes akaros support as it currently uses syz-stress running on host (linux) and executor running on akaros.
* pkg/osutil: don't depend on syscall in appengine buildDmitry Vyukov2017-07-031-0/+2
| | | | | | Dashboard app now depends on osutil through config package. Reshuffle functions so that the package does not depend on syscall in appengine build.
* pkg/osutil: port to darwinDmitry Vyukov2017-06-261-0/+15