Skip to content

Commit eb8981f

Browse files
committed
mv contrib/seccomp/kernelversion pkg/kernelversion
The package isn't really relevant to seccomp Signed-off-by: Akihiro Suda <[email protected]>
1 parent f276561 commit eb8981f

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

contrib/seccomp/seccomp_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"golang.org/x/sys/unix"
2525

26-
"github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
26+
"github.com/containerd/containerd/v2/pkg/kernelversion"
2727
"github.com/opencontainers/runtime-spec/specs-go"
2828
)
2929

core/mount/losetup_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"time"
2626
"unsafe"
2727

28-
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
2928
"github.com/containerd/containerd/v2/internal/randutil"
29+
kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
3030
"golang.org/x/sys/unix"
3131
)
3232

core/mount/mount_idmapped_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"syscall"
2424
"testing"
2525

26-
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
26+
kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
2727
"github.com/containerd/continuity/testutil"
2828
"github.com/stretchr/testify/require"
2929
"golang.org/x/sys/unix"

pkg/cri/config/config_kernel_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"errors"
2424
"fmt"
2525

26-
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
26+
kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
2727
)
2828

2929
var kernelGreaterEqualThan = kernel.GreaterEqualThan

pkg/cri/config/config_kernel_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"testing"
2222

23-
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
23+
kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
2424
"github.com/stretchr/testify/assert"
2525
)
2626

contrib/seccomp/kernelversion/kernel_linux.go renamed to pkg/kernelversion/kernel_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
15+
*/
1516

17+
/*
1618
File copied and customized based on
1719
https://github.com/moby/moby/tree/v20.10.14/profiles/seccomp/kernel_linux.go
1820
*/

contrib/seccomp/kernelversion/kernel_linux_test.go renamed to pkg/kernelversion/kernel_linux_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
15+
*/
1516

17+
/*
1618
File copied and customized based on
1719
https://github.com/moby/moby/tree/v20.10.14/profiles/seccomp/kernel_linux_test.go
1820
*/

plugins/snapshots/overlay/overlayutils/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626

2727
"golang.org/x/sys/unix"
2828

29-
kernel "github.com/containerd/containerd/v2/contrib/seccomp/kernelversion"
3029
"github.com/containerd/containerd/v2/core/mount"
30+
kernel "github.com/containerd/containerd/v2/pkg/kernelversion"
3131
"github.com/containerd/containerd/v2/pkg/userns"
3232
"github.com/containerd/continuity/fs"
3333
"github.com/containerd/log"

0 commit comments

Comments
 (0)