mv contrib/seccomp/kernelversion pkg/kernelversion

The package isn't really relevant to seccomp

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2024-01-24 18:07:20 +09:00
parent f2765617c5
commit eb8981f352
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A
8 changed files with 10 additions and 6 deletions

View File

@ -23,7 +23,7 @@ import (
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
"github.com/containerd/containerd/v2/contrib/seccomp/kernelversion" "github.com/containerd/containerd/v2/pkg/kernelversion"
"github.com/opencontainers/runtime-spec/specs-go" "github.com/opencontainers/runtime-spec/specs-go"
) )

View File

@ -25,8 +25,8 @@ import (
"time" "time"
"unsafe" "unsafe"
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
"github.com/containerd/containerd/v2/internal/randutil" "github.com/containerd/containerd/v2/internal/randutil"
kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
) )

View File

@ -23,7 +23,7 @@ import (
"syscall" "syscall"
"testing" "testing"
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion" kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
"github.com/containerd/continuity/testutil" "github.com/containerd/continuity/testutil"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"

View File

@ -23,7 +23,7 @@ import (
"errors" "errors"
"fmt" "fmt"
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion" kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
) )
var kernelGreaterEqualThan = kernel.GreaterEqualThan var kernelGreaterEqualThan = kernel.GreaterEqualThan

View File

@ -20,7 +20,7 @@ import (
"context" "context"
"testing" "testing"
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion" kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -12,7 +12,9 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/
/*
File copied and customized based on File copied and customized based on
https://github.com/moby/moby/tree/v20.10.14/profiles/seccomp/kernel_linux.go https://github.com/moby/moby/tree/v20.10.14/profiles/seccomp/kernel_linux.go
*/ */

View File

@ -12,7 +12,9 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/
/*
File copied and customized based on File copied and customized based on
https://github.com/moby/moby/tree/v20.10.14/profiles/seccomp/kernel_linux_test.go https://github.com/moby/moby/tree/v20.10.14/profiles/seccomp/kernel_linux_test.go
*/ */

View File

@ -26,8 +26,8 @@ import (
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
"github.com/containerd/containerd/v2/core/mount" "github.com/containerd/containerd/v2/core/mount"
kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
"github.com/containerd/containerd/v2/pkg/userns" "github.com/containerd/containerd/v2/pkg/userns"
"github.com/containerd/continuity/fs" "github.com/containerd/continuity/fs"
"github.com/containerd/log" "github.com/containerd/log"