From 44e0f041f2882c3d2a48e3d49b046eb60cd6f1a3 Mon Sep 17 00:00:00 2001 From: criyle Date: Fri, 1 May 2020 17:01:20 -0400 Subject: [PATCH] add linux suffix to linux only packages --- pkg/forkexec/{bench_test.go => bench_linux_test.go} | 2 -- pkg/forkexec/{consts.go => consts_linux.go} | 2 -- pkg/forkexec/{fork_child.go => fork_child_linux.go} | 2 -- pkg/forkexec/{fork.go => fork_linux.go} | 2 -- pkg/forkexec/{fork.s => fork_linux.s} | 0 pkg/forkexec/{fork_util.go => fork_util_linux.go} | 2 -- pkg/forkexec/{runner.go => runner_linux.go} | 2 -- pkg/forkexec/{userns.go => userns_linux.go} | 2 -- pkg/seccomp/libseccomp/{action.go => action_linux.go} | 2 -- pkg/seccomp/libseccomp/{builder.go => builder_linux.go} | 2 -- .../libseccomp/{seccomp_test.go => seccomp_linux_test.go} | 2 -- .../libseccomp/{syscallname.go => syscall_name_linux.go} | 2 -- 12 files changed, 22 deletions(-) rename pkg/forkexec/{bench_test.go => bench_linux_test.go} (99%) rename pkg/forkexec/{consts.go => consts_linux.go} (98%) rename pkg/forkexec/{fork_child.go => fork_child_linux.go} (99%) rename pkg/forkexec/{fork.go => fork_linux.go} (99%) rename pkg/forkexec/{fork.s => fork_linux.s} (100%) rename pkg/forkexec/{fork_util.go => fork_util_linux.go} (98%) rename pkg/forkexec/{runner.go => runner_linux.go} (99%) rename pkg/forkexec/{userns.go => userns_linux.go} (98%) rename pkg/seccomp/libseccomp/{action.go => action_linux.go} (97%) rename pkg/seccomp/libseccomp/{builder.go => builder_linux.go} (99%) rename pkg/seccomp/libseccomp/{seccomp_test.go => seccomp_linux_test.go} (98%) rename pkg/seccomp/libseccomp/{syscallname.go => syscall_name_linux.go} (93%) diff --git a/pkg/forkexec/bench_test.go b/pkg/forkexec/bench_linux_test.go similarity index 99% rename from pkg/forkexec/bench_test.go rename to pkg/forkexec/bench_linux_test.go index 2701646..6889bfb 100644 --- a/pkg/forkexec/bench_test.go +++ b/pkg/forkexec/bench_linux_test.go @@ -1,5 +1,3 @@ -// +build linux - package forkexec import ( diff --git a/pkg/forkexec/consts.go b/pkg/forkexec/consts_linux.go similarity index 98% rename from pkg/forkexec/consts.go rename to pkg/forkexec/consts_linux.go index 8f02358..59635df 100644 --- a/pkg/forkexec/consts.go +++ b/pkg/forkexec/consts_linux.go @@ -1,5 +1,3 @@ -// +build linux - package forkexec import ( diff --git a/pkg/forkexec/fork_child.go b/pkg/forkexec/fork_child_linux.go similarity index 99% rename from pkg/forkexec/fork_child.go rename to pkg/forkexec/fork_child_linux.go index 62c6f80..c12e49f 100644 --- a/pkg/forkexec/fork_child.go +++ b/pkg/forkexec/fork_child_linux.go @@ -1,5 +1,3 @@ -// +build linux - package forkexec import ( diff --git a/pkg/forkexec/fork.go b/pkg/forkexec/fork_linux.go similarity index 99% rename from pkg/forkexec/fork.go rename to pkg/forkexec/fork_linux.go index 4ca7889..74d6fe1 100644 --- a/pkg/forkexec/fork.go +++ b/pkg/forkexec/fork_linux.go @@ -1,5 +1,3 @@ -// +build linux - package forkexec import ( diff --git a/pkg/forkexec/fork.s b/pkg/forkexec/fork_linux.s similarity index 100% rename from pkg/forkexec/fork.s rename to pkg/forkexec/fork_linux.s diff --git a/pkg/forkexec/fork_util.go b/pkg/forkexec/fork_util_linux.go similarity index 98% rename from pkg/forkexec/fork_util.go rename to pkg/forkexec/fork_util_linux.go index ba5548f..6ff98aa 100644 --- a/pkg/forkexec/fork_util.go +++ b/pkg/forkexec/fork_util_linux.go @@ -1,5 +1,3 @@ -// +build linux - package forkexec import ( diff --git a/pkg/forkexec/runner.go b/pkg/forkexec/runner_linux.go similarity index 99% rename from pkg/forkexec/runner.go rename to pkg/forkexec/runner_linux.go index 9fcd54c..22c84df 100644 --- a/pkg/forkexec/runner.go +++ b/pkg/forkexec/runner_linux.go @@ -1,5 +1,3 @@ -// +build linux - package forkexec import ( diff --git a/pkg/forkexec/userns.go b/pkg/forkexec/userns_linux.go similarity index 98% rename from pkg/forkexec/userns.go rename to pkg/forkexec/userns_linux.go index f0408bd..79aa8ec 100644 --- a/pkg/forkexec/userns.go +++ b/pkg/forkexec/userns_linux.go @@ -1,5 +1,3 @@ -// +build linux - package forkexec import ( diff --git a/pkg/seccomp/libseccomp/action.go b/pkg/seccomp/libseccomp/action_linux.go similarity index 97% rename from pkg/seccomp/libseccomp/action.go rename to pkg/seccomp/libseccomp/action_linux.go index f61c0dd..972002c 100644 --- a/pkg/seccomp/libseccomp/action.go +++ b/pkg/seccomp/libseccomp/action_linux.go @@ -1,5 +1,3 @@ -// +build linux - package libseccomp import ( diff --git a/pkg/seccomp/libseccomp/builder.go b/pkg/seccomp/libseccomp/builder_linux.go similarity index 99% rename from pkg/seccomp/libseccomp/builder.go rename to pkg/seccomp/libseccomp/builder_linux.go index 544f57d..ed0dcc2 100644 --- a/pkg/seccomp/libseccomp/builder.go +++ b/pkg/seccomp/libseccomp/builder_linux.go @@ -1,5 +1,3 @@ -// +build linux - package libseccomp import ( diff --git a/pkg/seccomp/libseccomp/seccomp_test.go b/pkg/seccomp/libseccomp/seccomp_linux_test.go similarity index 98% rename from pkg/seccomp/libseccomp/seccomp_test.go rename to pkg/seccomp/libseccomp/seccomp_linux_test.go index 5379d58..7a690a3 100644 --- a/pkg/seccomp/libseccomp/seccomp_test.go +++ b/pkg/seccomp/libseccomp/seccomp_linux_test.go @@ -1,5 +1,3 @@ -// +build linux - package libseccomp import ( diff --git a/pkg/seccomp/libseccomp/syscallname.go b/pkg/seccomp/libseccomp/syscall_name_linux.go similarity index 93% rename from pkg/seccomp/libseccomp/syscallname.go rename to pkg/seccomp/libseccomp/syscall_name_linux.go index 6774d28..9d9e67f 100644 --- a/pkg/seccomp/libseccomp/syscallname.go +++ b/pkg/seccomp/libseccomp/syscall_name_linux.go @@ -1,5 +1,3 @@ -// +build linux - package libseccomp import (