Fix lint errors
PiperOrigin-RevId: 201978212 Change-Id: Ie3df1fd41d5293fff66b546a0c68c3bf98126067
This commit is contained in:
parent
9c0c4fd8d0
commit
cecc1e472c
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue