From cecc1e472cc893738a070be00d303dd888b9f325 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Mon, 25 Jun 2018 10:40:24 -0700 Subject: Fix lint errors PiperOrigin-RevId: 201978212 Change-Id: Ie3df1fd41d5293fff66b546a0c68c3bf98126067 --- runsc/boot/config.go | 4 ++-- runsc/boot/fs.go | 2 +- runsc/cmd/capability.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'runsc') diff --git a/runsc/boot/config.go b/runsc/boot/config.go index c13ac150d..3fca16cce 100644 --- a/runsc/boot/config.go +++ b/runsc/boot/config.go @@ -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 ) diff --git a/runsc/boot/fs.go b/runsc/boot/fs.go index 7731763de..e0d7fc769 100644 --- a/runsc/boot/fs.go +++ b/runsc/boot/fs.go @@ -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 { diff --git a/runsc/cmd/capability.go b/runsc/cmd/capability.go index 0209feb1b..e2410d4ad 100644 --- a/runsc/cmd/capability.go +++ b/runsc/cmd/capability.go @@ -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 { -- cgit v1.2.3