syzkaller/pkg/osutil/osutil_bsd.go
Anton Lindqvist b771b17ec9 Add mandatory OpenBSD bits (#689)
all: add openbsd support

squash of the following commits:

* openbsd: add mandatory bits
* report: add OpenBSD support
* executor: skip building kvm on OpenBSD
* executor: add OpenBSD support
Linking against libutil is necessary due to usage of openpty(3).
* executor: fix typo in fail() message
* fixup! report: add OpenBSD support
* fixup! openbsd: add mandatory bits
* fixup! openbsd: add mandatory bits
* fixup! openbsd: add mandatory bits
* fixup! report: add OpenBSD support
* gometalinter: skip sys/openbsd
2018-08-28 10:07:26 -07:00

30 lines
536 B
Go

// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// +build freebsd,!appengine netbsd,!appengine openbsd,!appengine
package osutil
import (
"os"
"os/exec"
)
func RemoveAll(dir string) error {
return os.RemoveAll(dir)
}
func prolongPipe(r, w *os.File) {
}
func Sandbox(cmd *exec.Cmd, user, net bool) error {
return nil
}
func SandboxChown(file string) error {
return nil
}
func setPdeathsig(cmd *exec.Cmd) {
}