treewide: add license header and enable haslicense linter
Change-Id: I873a8d4082d75e8f813d8a726a41187eea7a065e
Reviewed-on: https://review.monogon.dev/c/monogon/+/3825
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/osbase/test/ktest/init/main.go b/osbase/test/ktest/init/main.go
index 16ffa29..caeb61b 100644
--- a/osbase/test/ktest/init/main.go
+++ b/osbase/test/ktest/init/main.go
@@ -1,18 +1,5 @@
-// Copyright 2020 The Monogon Project Authors.
-//
+// Copyright The Monogon Project Authors.
// SPDX-License-Identifier: Apache-2.0
-//
-// 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.
// ktestinit is an init designed to run inside a lightweight VM for running
// tests in there. It performs basic platform initialization like mounting
diff --git a/osbase/test/ktest/main.go b/osbase/test/ktest/main.go
index 7d76bc5..9f17f68 100644
--- a/osbase/test/ktest/main.go
+++ b/osbase/test/ktest/main.go
@@ -1,18 +1,5 @@
-// Copyright 2020 The Monogon Project Authors.
-//
+// Copyright The Monogon Project Authors.
// SPDX-License-Identifier: Apache-2.0
-//
-// 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.
// ktest is a test launcher for running tests inside a custom kernel and passes
// the results back out.
diff --git a/osbase/test/ktest/run_ktest.sh b/osbase/test/ktest/run_ktest.sh
index 02920a1..3607b85 100755
--- a/osbase/test/ktest/run_ktest.sh
+++ b/osbase/test/ktest/run_ktest.sh
@@ -1,2 +1,7 @@
#!/bin/bash
+#
+# Copyright The Monogon Project Authors.
+# SPDX-License-Identifier: Apache-2.0
+#
+
exec "$1" -initrd-path "$2" -kernel-path "$3" -cmdline "$4"
\ No newline at end of file
diff --git a/osbase/test/launch/launch.go b/osbase/test/launch/launch.go
index df84e7d..d38df79 100644
--- a/osbase/test/launch/launch.go
+++ b/osbase/test/launch/launch.go
@@ -1,18 +1,5 @@
-// Copyright 2020 The Monogon Project Authors.
-//
+// Copyright The Monogon Project Authors.
// SPDX-License-Identifier: Apache-2.0
-//
-// 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.
// launch implements test harnesses for running qemu VMs from tests.
package launch
diff --git a/osbase/test/launch/log.go b/osbase/test/launch/log.go
index 2637e24..4cddd61 100644
--- a/osbase/test/launch/log.go
+++ b/osbase/test/launch/log.go
@@ -1,3 +1,6 @@
+// Copyright The Monogon Project Authors.
+// SPDX-License-Identifier: Apache-2.0
+
package launch
import (