From 901e5bed7430288eddb92df55d4031276a277c5b Mon Sep 17 00:00:00 2001 From: Fadi Abbud Date: Thu, 9 Dec 2021 16:19:26 +0100 Subject: [PATCH 1/3] Add License headers --- cmd/csaf_provider/actions.go | 8 ++++++++ cmd/csaf_provider/config.go | 8 ++++++++ cmd/csaf_provider/controller.go | 8 ++++++++ cmd/csaf_provider/create.go | 8 ++++++++ cmd/csaf_provider/extract.go | 8 ++++++++ cmd/csaf_provider/files.go | 8 ++++++++ cmd/csaf_provider/indices.go | 8 ++++++++ cmd/csaf_provider/main.go | 8 ++++++++ cmd/csaf_provider/mux.go | 8 ++++++++ cmd/csaf_provider/tmpl/create.html | 9 +++++++++ cmd/csaf_provider/tmpl/index.html | 9 +++++++++ cmd/csaf_provider/tmpl/upload.html | 9 +++++++++ cmd/csaf_provider/transaction.go | 8 ++++++++ cmd/csaf_uploader/main.go | 8 ++++++++ csaf/models.go | 8 ++++++++ csaf/rolie.go | 8 ++++++++ csaf/validation.go | 8 ++++++++ 17 files changed, 139 insertions(+) diff --git a/cmd/csaf_provider/actions.go b/cmd/csaf_provider/actions.go index b15b660..05a54b3 100644 --- a/cmd/csaf_provider/actions.go +++ b/cmd/csaf_provider/actions.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/config.go b/cmd/csaf_provider/config.go index e81104f..a923721 100644 --- a/cmd/csaf_provider/config.go +++ b/cmd/csaf_provider/config.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/controller.go b/cmd/csaf_provider/controller.go index 24188b1..5ea05f4 100644 --- a/cmd/csaf_provider/controller.go +++ b/cmd/csaf_provider/controller.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/create.go b/cmd/csaf_provider/create.go index 03f0784..78e75e1 100644 --- a/cmd/csaf_provider/create.go +++ b/cmd/csaf_provider/create.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/extract.go b/cmd/csaf_provider/extract.go index 4c8c955..5673cad 100644 --- a/cmd/csaf_provider/extract.go +++ b/cmd/csaf_provider/extract.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/files.go b/cmd/csaf_provider/files.go index 86b0d1c..e29edbd 100644 --- a/cmd/csaf_provider/files.go +++ b/cmd/csaf_provider/files.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/indices.go b/cmd/csaf_provider/indices.go index f86844b..c9ac116 100644 --- a/cmd/csaf_provider/indices.go +++ b/cmd/csaf_provider/indices.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/main.go b/cmd/csaf_provider/main.go index d4b527a..29a64ec 100644 --- a/cmd/csaf_provider/main.go +++ b/cmd/csaf_provider/main.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/mux.go b/cmd/csaf_provider/mux.go index 12b17ed..34b7e2e 100644 --- a/cmd/csaf_provider/mux.go +++ b/cmd/csaf_provider/mux.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_provider/tmpl/create.html b/cmd/csaf_provider/tmpl/create.html index cdbedc2..74fef6d 100644 --- a/cmd/csaf_provider/tmpl/create.html +++ b/cmd/csaf_provider/tmpl/create.html @@ -1,3 +1,12 @@ + diff --git a/cmd/csaf_provider/tmpl/index.html b/cmd/csaf_provider/tmpl/index.html index de980d0..b9e2be3 100644 --- a/cmd/csaf_provider/tmpl/index.html +++ b/cmd/csaf_provider/tmpl/index.html @@ -1,3 +1,12 @@ + diff --git a/cmd/csaf_provider/tmpl/upload.html b/cmd/csaf_provider/tmpl/upload.html index 4520b49..df718af 100644 --- a/cmd/csaf_provider/tmpl/upload.html +++ b/cmd/csaf_provider/tmpl/upload.html @@ -1,3 +1,12 @@ + diff --git a/cmd/csaf_provider/transaction.go b/cmd/csaf_provider/transaction.go index 936fd0f..6099684 100644 --- a/cmd/csaf_provider/transaction.go +++ b/cmd/csaf_provider/transaction.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/cmd/csaf_uploader/main.go b/cmd/csaf_uploader/main.go index 86a57dd..22d220e 100644 --- a/cmd/csaf_uploader/main.go +++ b/cmd/csaf_uploader/main.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package main import ( diff --git a/csaf/models.go b/csaf/models.go index 93544bf..fef4cd3 100644 --- a/csaf/models.go +++ b/csaf/models.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package csaf import ( diff --git a/csaf/rolie.go b/csaf/rolie.go index f1ab9de..12e6beb 100644 --- a/csaf/rolie.go +++ b/csaf/rolie.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package csaf import ( diff --git a/csaf/validation.go b/csaf/validation.go index bb06412..3e3dbc0 100644 --- a/csaf/validation.go +++ b/csaf/validation.go @@ -1,3 +1,11 @@ +// This file is Free Software under the MIT License +// without warranty, see README.md and LICENSES/MIT.txt for details. +// +// SPDX-License-Identifier: MIT +// +// SPDX-FileCopyrightText: 2021 German Federal Office for Information Security (BSI) +// Software-Engineering: 2021 Intevation GmbH + package csaf import ( From abdfbf0b358dbc4e272904835902adc3d7d003c6 Mon Sep 17 00:00:00 2001 From: Fadi Abbud Date: Fri, 10 Dec 2021 09:07:35 +0100 Subject: [PATCH 2/3] Add MIT licensing text --- LICENSES/MIT.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSES/MIT.txt diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..57165e6 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. From be820550c9734984761945c3da8f4ceca87686e9 Mon Sep 17 00:00:00 2001 From: Fadi Abbud Date: Fri, 10 Dec 2021 09:23:06 +0100 Subject: [PATCH 3/3] Append License Info to READEME --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 374ae0f..d2dc312 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,10 @@ - [Install](http://nginx.org/en/docs/install.html) **nginx** - To configure nginx see [docs/provider-setup.md](docs/provider-setup.md) + +## License + +- csaf_distribution is licensed as Free Software under MIT License. + +- See the specific source files +for details, the license itself can be found in the directory `LICENSES`. \ No newline at end of file