diff options
author | Ian Gudger <igudger@google.com> | 2018-09-21 14:05:46 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-21 14:06:59 -0700 |
commit | 7ce13ebcadc764c5f69215f072b53d3843bec679 (patch) | |
tree | 4968b723919164eb8789653ab7f5ce8ec0bb56a9 /runsc | |
parent | 4634cd66ad036023c218dd6c3899194039cc608b (diff) |
Run gofmt -s on everything
PiperOrigin-RevId: 214040901
Change-Id: I74d79497a053da3624921ad2b7c5193ca4a87942
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/container/container_test.go | 12 | ||||
-rw-r--r-- | runsc/fsgofer/filter/config.go | 6 | ||||
-rw-r--r-- | runsc/test/testutil/testutil.go | 2 |
3 files changed, 9 insertions, 11 deletions
diff --git a/runsc/container/container_test.go b/runsc/container/container_test.go index 996d80a89..083054877 100644 --- a/runsc/container/container_test.go +++ b/runsc/container/container_test.go @@ -735,13 +735,11 @@ func TestUnixDomainSockets(t *testing.T) { UID: uint32(os.Getuid()), GID: uint32(os.Getgid()), } - spec.Mounts = []specs.Mount{ - specs.Mount{ - Type: "bind", - Destination: dir, - Source: dir, - }, - } + spec.Mounts = []specs.Mount{{ + Type: "bind", + Destination: dir, + Source: dir, + }} rootDir, bundleDir, err := testutil.SetupContainer(spec, conf) if err != nil { diff --git a/runsc/fsgofer/filter/config.go b/runsc/fsgofer/filter/config.go index 0a1c63753..35698f21f 100644 --- a/runsc/fsgofer/filter/config.go +++ b/runsc/fsgofer/filter/config.go @@ -65,15 +65,15 @@ var allowedSyscalls = seccomp.SyscallRules{ syscall.SYS_FCHMOD: {}, syscall.SYS_FCHOWNAT: {}, syscall.SYS_FCNTL: []seccomp.Rule{ - seccomp.Rule{ + { seccomp.AllowAny{}, seccomp.AllowValue(syscall.F_GETFL), }, - seccomp.Rule{ + { seccomp.AllowAny{}, seccomp.AllowValue(syscall.F_SETFL), }, - seccomp.Rule{ + { seccomp.AllowAny{}, seccomp.AllowValue(syscall.F_GETFD), }, diff --git a/runsc/test/testutil/testutil.go b/runsc/test/testutil/testutil.go index 2e7f95912..37927f395 100644 --- a/runsc/test/testutil/testutil.go +++ b/runsc/test/testutil/testutil.go @@ -134,7 +134,7 @@ func NewSpecWithArgs(args ...string) *specs.Spec { // This creates a writable mount inside the root. Also, when tmpdir points // to "/tmp", it makes the the actual /tmp to be mounted and not a tmpfs // inside the sentry. - specs.Mount{ + { Type: "bind", Destination: TmpDir(), Source: TmpDir(), |