Merge pull request #9682 from AkihiroSuda/mv-seccomp-kernelversion

mv contrib/seccomp/kernelversion pkg/kernelversion
This commit is contained in:
Derek McGowan
2024-01-25 04:23:33 +00:00
committed by GitHub
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"