Fix lint errors

PiperOrigin-RevId: 201978212
Change-Id: Ie3df1fd41d5293fff66b546a0c68c3bf98126067
This commit is contained in:
Fabricio Voznika 2018-06-25 10:40:24 -07:00 committed by Shentubot
parent 9c0c4fd8d0
commit cecc1e472c
3 changed files with 4 additions and 4 deletions

View File

@ -24,10 +24,10 @@ import (
type PlatformType int
const (
// Ptrace runs the sandbox with the ptrace platform.
// PlatformPtrace runs the sandbox with the ptrace platform.
PlatformPtrace PlatformType = iota
// KVM runs the sandbox with the KVM platform.
// PlatformKVM runs the sandbox with the KVM platform.
PlatformKVM
)

View File

@ -428,7 +428,7 @@ func addRestoreMount(conf *Config, renv *fs.RestoreEnvironment, m specs.Mount, f
return nil
}
// createRestoreEnviroment builds a fs.RestoreEnvironment called renv by adding the mounts
// createRestoreEnvironment builds a fs.RestoreEnvironment called renv by adding the mounts
// to the environment.
func createRestoreEnvironment(spec *specs.Spec, conf *Config, fds *fdDispenser) (*fs.RestoreEnvironment, error) {
if conf.FileAccess == FileAccessDirect {

View File

@ -78,7 +78,7 @@ func trimCaps(names []string, setter capability.Capabilities) ([]capability.Cap,
var caps []capability.Cap
for _, c := range wantedCaps {
// Capability rules are more complicated than this, but this catches most
// problems with tests running with non-priviledged user.
// problems with tests running with non-privileged user.
if setter.Get(capability.PERMITTED, c) {
caps = append(caps, c)
} else {