From 4c998fb837643f5a8caec2cea22b38cf9c99326a Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Tue, 31 Oct 2023 22:42:13 +0000 Subject: [PATCH] repo: add mpl copyright headers --- .copywrite.hcl | 14 ++++++++++++++ available_default.go | 3 +++ available_default_test.go | 3 +++ available_linux.go | 3 +++ available_linux_test.go | 3 +++ landlock.go | 3 +++ landlock_default.go | 3 +++ landlock_default_test.go | 3 +++ landlock_linux.go | 3 +++ landlock_linux_test.go | 3 +++ path.go | 3 +++ path_linux.go | 3 +++ path_test.go | 3 +++ syscall_linux.go | 3 +++ syscall_linux_test.go | 3 +++ tests/fruits/hello.sh | 3 +++ 16 files changed, 59 insertions(+) create mode 100644 .copywrite.hcl diff --git a/.copywrite.hcl b/.copywrite.hcl new file mode 100644 index 0000000..0300d90 --- /dev/null +++ b/.copywrite.hcl @@ -0,0 +1,14 @@ +schema_version = 1 + +project { + license = "MPL-2.0" + copyright_holder = "Seth Hoenig" + copyright_year = 2022 + header_ignore = [ + ".golangci.yaml", + ".goreleaser.yaml", + ".copywrite.hcl", + ".github/**", + ] +} + diff --git a/available_default.go b/available_default.go index adf192e..730f7f3 100644 --- a/available_default.go +++ b/available_default.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package landlock diff --git a/available_default_test.go b/available_default_test.go index ebad3e6..f3e63d8 100644 --- a/available_default_test.go +++ b/available_default_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package landlock diff --git a/available_linux.go b/available_linux.go index 067fa99..390563c 100644 --- a/available_linux.go +++ b/available_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package landlock diff --git a/available_linux_test.go b/available_linux_test.go index 2e1e0e2..7829c7d 100644 --- a/available_linux_test.go +++ b/available_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package landlock diff --git a/landlock.go b/landlock.go index 50a6a03..6c188a5 100644 --- a/landlock.go +++ b/landlock.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + // Package landlock provides a Go library for using the // landlock feature of the modern Linux kernel. // diff --git a/landlock_default.go b/landlock_default.go index af0ae1c..d8ea291 100644 --- a/landlock_default.go +++ b/landlock_default.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package landlock diff --git a/landlock_default_test.go b/landlock_default_test.go index 16c1ec4..87fc6e4 100644 --- a/landlock_default_test.go +++ b/landlock_default_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package landlock diff --git a/landlock_linux.go b/landlock_linux.go index c8c80f6..5fe2375 100644 --- a/landlock_linux.go +++ b/landlock_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package landlock diff --git a/landlock_linux_test.go b/landlock_linux_test.go index c230691..265753c 100644 --- a/landlock_linux_test.go +++ b/landlock_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package landlock diff --git a/path.go b/path.go index 49d0847..0bb2210 100644 --- a/path.go +++ b/path.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + package landlock import ( diff --git a/path_linux.go b/path_linux.go index 8dfee3c..e3f7086 100644 --- a/path_linux.go +++ b/path_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package landlock diff --git a/path_test.go b/path_test.go index a878471..89b3537 100644 --- a/path_test.go +++ b/path_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + package landlock import ( diff --git a/syscall_linux.go b/syscall_linux.go index 1a5ed2c..76f9b98 100644 --- a/syscall_linux.go +++ b/syscall_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package landlock diff --git a/syscall_linux_test.go b/syscall_linux_test.go index 343a5f8..0dc4ac3 100644 --- a/syscall_linux_test.go +++ b/syscall_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Seth Hoenig +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package landlock diff --git a/tests/fruits/hello.sh b/tests/fruits/hello.sh index 34c9efa..b3ef8c3 100755 --- a/tests/fruits/hello.sh +++ b/tests/fruits/hello.sh @@ -1,3 +1,6 @@ #!/usr/bin/env bash +# Copyright (c) Seth Hoenig +# SPDX-License-Identifier: MPL-2.0 + echo -n "so you like fruit?"