diff --git a/Dockerfile b/Dockerfile index ea2203a..0d2c26c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,19 @@ +# Copyright The containerd Authors. + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + +# ----------------------------------------------------------------------------- + # Build the Linux kernel, initrd ,and containerd shim for running nerbox ARG GO_VERSION=1.25.1 diff --git a/Makefile b/Makefile index 0079bc9..d8aaa65 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,17 @@ +# Copyright The containerd Authors. + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + GO ?= go DOCKER ?= docker BUILDX ?= $(DOCKER) buildx diff --git a/cmd/vminitd/networking.go b/cmd/vminitd/networking.go index 0f7adf6..e5452d0 100644 --- a/cmd/vminitd/networking.go +++ b/cmd/vminitd/networking.go @@ -1,5 +1,21 @@ //go:build linux +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package main import ( diff --git a/internal/kvm/kvm_linux.go b/internal/kvm/kvm_linux.go index fd8bdce..32f359b 100644 --- a/internal/kvm/kvm_linux.go +++ b/internal/kvm/kvm_linux.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package kvm import ( diff --git a/internal/kvm/kvm_others.go b/internal/kvm/kvm_others.go index b440577..f125b82 100644 --- a/internal/kvm/kvm_others.go +++ b/internal/kvm/kvm_others.go @@ -1,5 +1,21 @@ //go:build !linux +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package kvm // CheckKVM is a no-op on non-Linux platforms. diff --git a/internal/nwcfg/nwcfg.go b/internal/nwcfg/nwcfg.go index 3b8b2f9..217d370 100644 --- a/internal/nwcfg/nwcfg.go +++ b/internal/nwcfg/nwcfg.go @@ -1,5 +1,20 @@ -// Package nwcfg describes the network config file passed to the VM along with the bundle. +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + +// Package nwcfg describes the network config file passed to the VM along with the bundle. package nwcfg import "net/netip" diff --git a/internal/shim/task/bundle/bundle.go b/internal/shim/task/bundle/bundle.go index 2243353..656d96e 100644 --- a/internal/shim/task/bundle/bundle.go +++ b/internal/shim/task/bundle/bundle.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package bundle import ( diff --git a/internal/shim/task/ctrnetworking.go b/internal/shim/task/ctrnetworking.go index 2387a2a..6e9c2c1 100644 --- a/internal/shim/task/ctrnetworking.go +++ b/internal/shim/task/ctrnetworking.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package task import ( diff --git a/internal/shim/task/networking_unix.go b/internal/shim/task/networking_unix.go index 49331bb..f99666d 100644 --- a/internal/shim/task/networking_unix.go +++ b/internal/shim/task/networking_unix.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package task import ( diff --git a/internal/shim/task/networking_windows.go b/internal/shim/task/networking_windows.go index 5f0383d..2bc55e0 100644 --- a/internal/shim/task/networking_windows.go +++ b/internal/shim/task/networking_windows.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package task import ( diff --git a/internal/sliceutil/sliceutil.go b/internal/sliceutil/sliceutil.go index 74ec203..a0d9681 100644 --- a/internal/sliceutil/sliceutil.go +++ b/internal/sliceutil/sliceutil.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package sliceutil func Filter[T any](slice []T, fn func(T) bool) []T { diff --git a/internal/sliceutil/sliceutil_test.go b/internal/sliceutil/sliceutil_test.go index 8018bc2..f7a7915 100644 --- a/internal/sliceutil/sliceutil_test.go +++ b/internal/sliceutil/sliceutil_test.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package sliceutil import ( diff --git a/internal/virtionet/features.go b/internal/virtionet/features.go index 0e8064d..64af5e9 100644 --- a/internal/virtionet/features.go +++ b/internal/virtionet/features.go @@ -1,3 +1,19 @@ +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package virtionet import "fmt" diff --git a/internal/vminit/ctrnetworking/ctrnetworking.go b/internal/vminit/ctrnetworking/ctrnetworking.go index f50467e..b91295c 100644 --- a/internal/vminit/ctrnetworking/ctrnetworking.go +++ b/internal/vminit/ctrnetworking/ctrnetworking.go @@ -1,5 +1,21 @@ //go:build linux +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package ctrnetworking import ( diff --git a/internal/vminit/vmnetworking/dhcp.go b/internal/vminit/vmnetworking/dhcp.go index 1fae83e..d33b0a6 100644 --- a/internal/vminit/vmnetworking/dhcp.go +++ b/internal/vminit/vmnetworking/dhcp.go @@ -1,5 +1,21 @@ //go:build linux +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package vmnetworking import ( diff --git a/internal/vminit/vmnetworking/vmnetworking.go b/internal/vminit/vmnetworking/vmnetworking.go index 8a8c9c3..d6a317f 100644 --- a/internal/vminit/vmnetworking/vmnetworking.go +++ b/internal/vminit/vmnetworking/vmnetworking.go @@ -1,5 +1,21 @@ //go:build linux +/* + Copyright The containerd Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +*/ + package vmnetworking import (