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
commit 023ec5e52c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 10 additions and 6 deletions

View File

@ -23,7 +23,7 @@ import (
"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"
)

View File

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

View File

@ -23,7 +23,7 @@ import (
"syscall"
"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/stretchr/testify/require"
"golang.org/x/sys/unix"

View File

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

View File

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

View File

@ -12,7 +12,9 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
File copied and customized based on
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.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
File copied and customized based on
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"
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
"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/continuity/fs"
"github.com/containerd/log"